[REBOL] epoch? Re:(5)

1999-10-28 Thread rryost
REBOL *must* be basing dates on a stored Julian day number. They should give us a word 'julian that returns the julian day no for a given date, and some other word to convert it to a date. The Julian day number accounts for leapyears, number of days in each month, etc. There are a number of "ep

[REBOL] epoch? Re:(5)

1999-10-29 Thread ralph
Ah... now we're making progress. now - 31-12-1969 * 86400 works, except that gives the right day but not the current time. All I gotta do now is figure how how to do the correct time. (using the above, we get 941241600 which translates, using from the Unix command date -r 941241600) to Fri Oct

[REBOL] epoch? Re:(5)

1999-10-29 Thread mdingler
Well, getting seconds is possible, but is there a portable way to get a micro-seconds timer? With the new console commands, you could finally make a game of tetris this way ;) ...Michael... (alas, no colours...)