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 - daysec() return time of the day in separate values http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 daysec()            Return time of the day in separate values
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   proc daysec extern
   param uint uHours, ;
         uint uMinutes, ;
         uint uSec, ;
         uint uMilliSec

 Arguments
   uHours receives the hours.

   uMinutes receives the minutes.

   uSec receives the seconds.

   uMilliSec receives the milliseconds.

 Return
   None.

 Description
   The daysec() function fills the passed parameters with values for
   the current time of the day.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_daysec
   vardef
      uint uHours, uMinutes, uSecs, uMilliSecs
   enddef
   ? "Time":12, time()
   daysec( uHours, uMinutes, uSecs, uMilliSecs )
   ? "Hour":12,        uHours
   ? "Minute":12,      uMinutes
   ? "Second":12,      uSecs
   ? "Millisecond":12, uMilliSecs
   endproc

   proc main
   Test_daysec()
   endproc

See Also: dayseconds() seconds() time()

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