Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Time Function

From: g:santilli:tiscalinet:it at: 12-Dec-2000 14:23

Aden Burnie wrote:
> That muched ive figured out so far, but want i want to do is convert > it into weeks / days / hours / minutes / seconds, something like > "1 Week, 32 days, 10 Hours, 35 minutes and 23 seconds has elapsed" > i cant figure out how to calcuate that offa the time value alone.
Here's a hack that may help you out:
>> d: 1-Jan-2000
== 1-Jan-2000
>> d/time: 777:00:00
== 777:00
>> d
== 2-Feb-2000/9:00 Otherwise, what's the problem with:
>> days: 777 / 24
== 32.375
>> hours: 0.375 * 24
== 9 etc.? HTH, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/