Hi Bo

It's optimized but is incorrect.
The difference between two "dates" gives just the difference between the
"days".

Regards

At 05:02 p.m. 28/10/99 -0700, you wrote:
>
>While we're on the subject of optimization, how about this?
>
>now - 1-1-1970 * 86400
>
>Have fun!
>
>
>On 28-Oct-1999/19:08:32+4:00, [EMAIL PROTECTED] wrote:
>>Hi
>>
>>Maybe can be optimized
>>
>>;----
>>ahora: now
>>hms: parse to-string ahora/time ":"
>>seconds-from: (ahora - make date! [1 1 1970]) * 86400 + ((to-integer hms/1)
>>* 3600) + ((to-integer hms/2) * 60) + (to-integer hms/3)
>>;----
>>
>>regards
>>At 04:57 p.m. 28/10/99 -0400, you wrote:
>>>
>>>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?
>>>
>>>--Ralph


-- 
Luis Marzulli
e-mail: [EMAIL PROTECTED]
Caracas, VENEZUELA
----------------------------------------------------------
Earn money when you or your friends are on the Web
click --> http://www.alladvantage.com/go.asp?refid=BXX890

Reply via email to