REBOL Document

Now - Function Summary


Summary:

Returns the current local date and time.

Usage:

now

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

Description:

For accuracy, first verify that the time, date and timezone are correctly set on the computer.


    print now
    9-Mar-2004/0:59:56-8:00


    print now/date
    9-Mar-2004


    print now/time
    0:59:56


    print now/zone
    -8:00


    print now/weekday
    2

Related:

date? - Returns TRUE for date values.


<Back | Index | Next>

Copyright 2004 REBOL Technologies