Hello, 
On 28-Oct-99, [EMAIL PROTECTED] wrote:

> 
> While we're on the subject of optimization, how about this?
> 
> now - 1-1-1970 * 86400

>> In Perl <*shudder*> and Unix, you can use the number of seconds from the
>> Epoch (January 1, 1970) in programs. How can I do this in Rebol; i.e.
>> get the number of seconds from the Epoch?

I didn't try the intermediate one, but this, run several times, gives:

>> now - 1-1-1970 * 86400
== 941500800
>> now - 1-1-1970 * 86400
== 941500800
>> now - 1-1-1970 * 86400
== 941500800
>> now - 1-1-1970 * 86400
== 941500800
>> now - 1-1-1970 * 86400
== 941500800

If we're talking seconds from epoch, why do these all give the same results
when run a few seconds apart?

Elliott

Reply via email to