REBOL Programming/now

USAGE:Edit

NOW /year /month /day /time /zone /date /weekday /yearday /precise 

DESCRIPTION:Edit

Returns the current local date and time.

NOW is a native value.

REFINEMENTS:Edit

  • /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).
  • /yearday -- Returns day of the year (Julian)
  • /precise -- Use nanosecond precision

SOURCE CODEEdit

now: native[
    "Returns the current local date and time." 
    /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).} 
    /yearday "Returns day of the year (Julian)" 
    /precise "Use nanosecond precision"
]
Last modified on 31 October 2012, at 15:33