REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: now

now  /year  /month  /day  /time  /zone  /date  /weekday  /yearday  /precise  /utc

Returns local date and time.

Refinements:

/year - Returns year only

/month - Returns month only

/day - Returns day of the month only

/time - Returns time only

/zone - Returns time zone offset from UCT (GMT) only

/date - Returns date only

/weekday - Returns day of the week as integer (Monday is day 1)

/yearday - Returns day of the year (Julian)

/precise - Higher precision

/utc - Universal time (no zone)

See also:

date?  

Description

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

print now
12-Feb-2009/17:47:54-8:00
print now/date
12-Feb-2009
print now/time
17:47:54
print now/zone
-8:00
print now/weekday
4


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin