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 - settime() set system time http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 settime()           Set system time
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func logical settime extern
   param const char(8) cTime

 Arguments
   cTime is the new time value.

 Return
   A logical indicating if system time was successfully changed.

 Description
   The settime() function changes the computer's system time.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_settime
   vardef
      char(8) cTime
   enddef
   cTime := time()                // save current time
   settime( "20:59:13" )          // change time
   ? "Time changed to", time()
   wait
   settime( cTime )               // reset correct time
   ? "Time reset to  ", time()
   endproc

   proc main
   Test_settime()
   endproc

See Also: settoday() time()

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