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 - getsetepoch() get and set the epoch flag http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getsetepoch()       Get and set the epoch flag
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   func uint getsetepoch extern
   param value uint uYear

 Arguments
   uYear is the new epoch year value.

 Return
   The previous epoch year value.

 Description
   The getsetepoch() function sets the epoch year and returns its
   previous value.

 Example
   #define EXAMPLE_DATE
   #include example.hdr

   proc Test_getsetepoch
   vardef
      uint nEpoch
   enddef
   ? getepoch()
   nEpoch := getsetepoch( 1980 )   // save and set epoch
   ? getepoch()
   getsetepoch( nEpoch )           // restore epoch
   ? getepoch()
   endproc

   proc main
   Test_getsetepoch()
   endproc

See Also: getepoch() set epoch to setepoch()

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