This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / System Interface / Time and Date /

Date

FilledSmallSquare Date[ ] gives the current local date and time in the form year, month, day, hour, minute, second.

FilledSmallSquare Date[ ] uses whatever date and time have been set on your computer system. It performs no corrections for time zones, daylight saving time, etc.

FilledSmallSquare Date[z] gives the date in time zone z. This is inferred by knowing your local date and time, and local time zone. The time zone is given as the number of hours to be added to Greenwich mean time to obtain local time.

FilledSmallSquare All values returned by Date[ ] are integers, except the number of seconds. The number of seconds is never more accurate than $TimeUnit.

FilledSmallSquare You can compare two lists returned by Date using Order.

FilledSmallSquare See Section 2.14.3.

FilledSmallSquare See also: AbsoluteTime, TimeZone, SessionTime, TimeUsed, ToDate, FromDate, FileDate, $CreationDate.

FilledSmallSquare Related package: Miscellaneous`Calendar`.

FilledSmallSquare New in Version 2.

Further Examples