!DATE

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Fri, 31 May 2002 14:51:25 -0500

SwiftForth contains a word called !DATE to set the system date to a given
value. SwiftX does not. A poor implmentation is
: !DATE ( y d m -- ) ROT D/M/Y @TIME ROT !NOW ;

I say it is poor because fetching the time and then resetting the time to
that fetched time must lose a finite amount of time between the fetch and
the set. Though that time will never amount to a second, the resolution of
!NOW, it will drop a whole second if the time is fetched a microsecond
before the clock rolls over to a new second but stored a microsecond after.

Has anyone come up with a better implementation?
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Fri May 31 2002 - 12:51:07 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.