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

 Syntax
   func logical settoday extern
   param value date dDate

 Arguments
   dDate is the new date value.

 Return
   A logical indicating if system date was successfully changed.

 Description
   The settoday() function changes the computer's system date.
   Valid year values are only between 1980 and 2099.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_settoday
   vardef
      date dDate
   enddef
   dDate := today()                // save current date
   settoday( ctod( "12/31/99" ) )  // change date
   ? "Date changed to", today()
   wait
   settoday( dDate )               // reset correct date
   ? "Date reset to  ", today()
   endproc

   proc main
   Test_settoday()
   endproc

See Also: settime() today()

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