[REBOL] Re: Time Function
From: giovanni:cardona at: 11-Dec-2000 14:26
Im not a Rebol expert (Im just learning now)
but it seems that print (777:45:03 / 24:00:00) tells you the days
and print (777:45:03 / (24:00:00 * 7)) tells you the weeks.
I bet there's a simple line evualator for this, but I dont know :)
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
"Miracles happen only to those who believe in them."
* Visit 'The International Order of Sea-Monkey Owners' web site
* http://roads.to/seamonkey
* To subscribe to our monthly news, send a blank email to:
* [instantlife-subscribe--listbot--com]
----- Original Message -----
From: Aden Burnie <[etcha--gsat--net--au]>
To: <[rebol-list--rebol--com]>
Sent: Monday, December 11, 2000 10:10 AM
Subject: [REBOL] Time Function
> Greets All,
>
> Im trying to write a function that calculates time elapsed (eg compare
12/12/2000,6:30:00 to 17/01/2001,12:00:00) , ive done the basic conversion
of date/time to hours/minutes/seconds elapsed, but i cant figure out how to
turn say "777:45:03" back into weeks / days / hours / minutes / seconds
elapsed.