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

AbsoluteTime

AbsoluteTime
gives the total number of seconds since the beginning of January 1, 1900, in your time zone.
AbsoluteTime
gives the absolute time specification corresponding to a date list.
AbsoluteTime
gives the absolute time specification corresponding to a date string.
AbsoluteTime
takes the date string to contain the elements .
  • AbsoluteTime uses whatever date and time have been set on your computer system. It performs no corrections for time zones, daylight saving time, etc.
  • AbsoluteTime is always accurate down to a granularity of $TimeUnit seconds, but on many systems is much more accurate.
  • Shorter lists can be used in AbsoluteTime: {y} is equivalent to , to , etc.
  • Values of m, d, h, m, s outside their normal ranges are appropriately reduced. Noninteger values of d, h, m, s can also be used. »
Absolute time in seconds since January 1, 1900:
Convert a date list or elided date list:
Convert from a date string to absolute time:
Specify date elements for interpreting a string:
Absolute time in seconds since January 1, 1900:
In[1]:=
Click for copyable input
Out[1]=
 
Convert a date list or elided date list:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Convert from a date string to absolute time:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Specify date elements for interpreting a string:
In[1]:=
Click for copyable input
Out[1]=
Strings are automatically interpreted when possible:
Separators are assumed if not specified:
Give explicit separators:
Date lists are converted to standard normalized form:
Day, hour, minute, and second values in input date lists can be noninteger:
The current year is used if not specified in a string:
Give explicit date elements to interpret ambiguous strings:
Find the current absolute time in Greenwich, United Kingdom:
Compute the number of seconds between January 1, 1900 and January 1, 1970:
AbsoluteTime represents dates as seconds since the beginning of 1900:
DateList represents dates as lists of date elements:
DateString represents dates as strings:
Use DateListPlot to plot data with absolute time coordinates on a time scale:
New in 2 | Last modified in 6