On Sunday 26 August 2007, Carl Read wrote:
 Very usable!
Thanks Carl
tim
> Try this! ...
>
> old-now: :now
> now: reduce [
>     does [first old-now] does [second old-now] does [third old-now]
>     does [fourth old-now] does [fifth old-now] none none none
>     'year does [first old-now] 'month does [second old-now] 'day does
> [third old-now] 'time does [fourth old-now] 'zone does [fifth old-now]
>     'date does [old-now/date] 'weekday does [old-now/weekday]
>     'yearday does [old-now/yearday] 'precise does [old-now/precise]
> ]
>
> >> now/1
>
> == 2007
>
> >> now/year
>
> == 2007
>
> >> now/2
>
> == 8
>
> >> now/month
>
> == 8
>
> >> now/4
>
> == 18:30:41
>
> >> now/4
>
> == 18:30:43
>
> >> now/time
>
> == 18:30:51
>
> >> now/date
>
> == 27-Aug-2007
>
> >> now/precise
>
> == 27-Aug-2007/18:31:05.406+12:00
>
> However, unfortunately...
>
> >> now/time/precise
>
> ** Script Error: time has no refinement called precise
> ** Near: now/time/precise
>
> Close though! :-)
>
> -- Carl Read.


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to