Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - time() return the current system time http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 time()              Return the current system time
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func char time extern

 Arguments
   None.

 Return
   A time string.

 Description
   The time() function returns an 8 character representation
   of the system time in the format "HH:MM:SS".  HH represents
   the number of hours from midnight and is in a 24 hour
   sequence.  That is, 3:50pm is returned as the string "15:50:00".

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   // Used the substr() function to extract the hour, minutes, and seconds
   // digits from the return value of time()
   
   proc Test_time
   ? time()
   ? "Hours:  ", substr( time(), 1, 2 )
   ? "Minutes:", substr( time(), 4, 2 )
   ? "Seconds:", substr( time(), 7, 2 )
   endproc

   proc main
   Test_time()
   endproc

See Also: settime()

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