IG| Being a programmer, I tend to aspire toward maximum efficiency in
| my programs, so I'd like to know if anyone has a more efficient
| way to do the following:
You can avoid the converting the time to a string by using the 'thour'
function. Here's the startup script I used for years in Telix for
DOS, which demonstrates this... it silences the modem during certain
hours:
// Telix startup script
main()
{
if (not carrier())
if (thour(curtime()) > 21 or thour(curtime()) < 11)
cputs("AT L1^M");
set_defprot('Z');
dial();
}
---
* OLXWin 1.00b * Internet: jhudgions@sprynet.com
--- QScan/PCB v1.17b / 01-0035
---------------
* Origin: Agora Online -- Bayonne, NJ 201-437-4355 v.34 (1:2630/312)
|