Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_systime() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SYSTIME()

 DESCRIPTION

 C_SYSTIME() allows the computer's system time to be read and changed.

 NOTES

 The function always returns the current time for the system.  To
 set the system time, include the four time parameters when the
 function is called.

 SYNTAX

 C_SYSTIME(hours, minutes, seconds, hundredths)

 PARAMETERS

 hours (N) are the two digit hours (0 - 23) to set.

 minutes (N) are the two digit minutes (0 - 59) to set.

 seconds (N) are the two digit seconds (0 - 59) to set.

 hundredths (N) are the two digit hundredths of a second (0 - 99) to set.

 RETURNS

 C_SYSTIME() returns the current system time as a character string.

 EXAMPLES

 && Read the system time
 ? c_systime() --> 10:10:45.05

 && Set the system time to 12:15:30 and return the previous time
 ? c_systime(12,15,30,00) --> 10:10:46.35

 && Read the system time
 ? c_systime() --> 12:15:30.40

 && Save the current system time
 x = c_systime()

 ? val(substr(x,1,2))     && hours
 ? val(substr(x,4,2))     && minutes
 ? val(substr(x,7,2))     && seconds
 ? val(substr(x,10,2))    && hundredths

 && Restore the system time
 c_systime(val(substr(x,1,2)),val(substr(x,4,2)),val(substr(x,7,2)),
           val(substr(x,10,2)))


See Also: C_SYSDATE() C_SYSDAY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson