>> now/year
== 2007
>> now/month
== 12
>> now/day
== 11
>> now/time
== 10:10:12
>> now/time/precise
== 10:10:23.578

? now
USAGE:
    NOW /year /month /day /time /zone /date /weekday /precise

DESCRIPTION:
     Returns the current local date and time.
     NOW is a native value.

REFINEMENTS:
     /year -- Returns the year only.
     /month -- Returns the month only.
     /day -- Returns the day of the month only.
     /time -- Returns the time only.
     /zone -- Returns the time zone offset from GMT only.
     /date -- Returns date only.
     /weekday -- Returns day of the week as integer (Monday is day 1).
     /precise -- Use nanosecond precision

Peter

On 11/12/2007, Kai Peters <[EMAIL PROTECTED]> wrote:
>
>
> >> now/date/year
> ** Script Error: Too many refinements
> ** Where: halt-view
> ** Near: now/date/year
> >> t: now/date
> =3D=3D 10-Dec-2007
> >> t/1
> =3D=3D 2007
> >> t/year
> =3D=3D 2007
>
> Is there a way to get the "elements" of the date without having
> to resort to the introduction of an extra word?
>
> TIA,
> Kai
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>


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

Reply via email to