NOW

REBOL Dictionary 2.0


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
    25-Jan-2003/17:29:05-8:00


    print now/date
    25-Jan-2003


    print now/time
    17:29:05


    print now/zone
    -8:00


    print now/weekday
    6

Related:

date? - Returns TRUE for date values.


<Back | Index | Next>

Copyright 2003 REBOL Technologies