gives the total number of seconds since the beginning of January 1, 1900, in your time zone.
AbsoluteTime[date]
gives the absolute time specification corresponding to the given date specification.
AbsoluteTime
gives the total number of seconds since the beginning of January 1, 1900, in your time zone.
AbsoluteTime[date]
gives the absolute time specification corresponding to the given date specification.
Details and Options
- AbsoluteTime[] uses whatever date and time have been set on your computer system. It performs no corrections for time zones, daylight saving time, etc.
- In AbsoluteTime[date], the following date and time specifications can be given as date:
-
date DateObject specification {y,m,d,h,m,s} DateList specification time AbsoluteTime specification "string" DateString specification {"string",fmt} date string formed from the specified format - AbsoluteTime[TimeZone -> z] gives the date and time inferred for time zone z by assuming that your computer is set for the time zone specified by $TimeZone. »
- 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,m,…}]: {y} is equivalent to {y,1,1,0,0,0}, {y,m} to {y,m,1,0,0,0}, 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. »
- The number of seconds returned by AbsoluteTime does not take into account leap seconds.
Examples
open all close allBasic Examples (5)
Absolute time in seconds since January 1, 1900:
AbsoluteTime[]Convert from a date object to an absolute time:
AbsoluteTime[DateObject[{2022, 12, 18}, "Day"]]Convert a date list or elided date list:
AbsoluteTime[{2022, 1, 1, 0, 0, 0}]AbsoluteTime[{2022, 1}]Convert from a date string to absolute time:
DateString[]AbsoluteTime[%]Specify date elements for interpreting a string:
AbsoluteTime[{"05/06/22", {"Day", "Month", "YearShort"}}]Scope (5)
Strings are automatically interpreted when possible:
AbsoluteTime["2022-12-1"]AbsoluteTime["10 March 2022"]Separators are assumed if not specified:
AbsoluteTime[{"2/23/2022", {"Month", "Day", "Year"}}]AbsoluteTime[{"2/23/2022", {"Month", "/", "Day", "/", "Year"}}]Date lists are converted to standard normalized form:
AbsoluteTime[{2022, 2, 31}]AbsoluteTime[{2022, 3, 3}]Day, hour, minute, and second values in input date lists can be noninteger:
AbsoluteTime[{2022, 3, 15.5}]AbsoluteTime[{2022, 3, 15, 12.3}]The current year is used if not specified in a string:
AbsoluteTime[{"2/15", {"Month", "Day"}}]Generalizations & Extensions (1)
Options (1)
Applications (1)
Use DateListPlot to plot data with absolute time
coordinates on a time scale:
DateListPlot[{{3376598400, 2}, {3379276800, 4}, {3381696000, 6}, {3384374400, 8}}]Properties & Relations (5)
Compute the number of seconds between January 1, 1900, and January 1, 2000:
AbsoluteTime[{2000, 1, 1, 0, 0, 0}]AbsoluteTime represents dates as seconds since the beginning of 1900:
AbsoluteTime[DateObject[{2022, 1, 1}, "Day"]]DateObject represents a given date:
DateObject[%]DateList represents dates as lists of date elements:
DateList[%]DateString represents dates as strings:
DateString[%]The number of seconds returned by AbsoluteTime corresponds to the "AbsoluteTime" calendar:
now = NowAbsoluteTime[now]//DecimalFormCalendarConvert[now, "AbsoluteTime"]UnixTime returns the number of seconds since the beginning of 1970, in the GMT time zone:
UnixTime[]Therefore this difference is constant:
IntegerPart[AbsoluteTime[TimeZone -> 0] - UnixTime[]]It is the number of seconds since January 1, 1900, to January 1, 1970:
AbsoluteTime[{1970, 1, 1, 0, 0, 0}]JulianDate returns the number of days since noon on November 24, 4714 BCE in the GMT time zone:
JulianDate[]Therefore this difference is constant:
Round[86400JulianDate[] - AbsoluteTime[TimeZone -> 0]]It is the number of seconds since noon on November 24, 4714 BCE, to the beginning of January 1, 1900:
AbsoluteTime[{-4714, 11, 24, 12, 0, 0}]That proleptic Gregorian date is noon on January 1, 4713 BCE in the Julian calendar:
AbsoluteTime[DateObject[{-4713, 1, 1, 12, 0, 0}, CalendarType -> "Julian"]]Tech Notes
History
Introduced in 1991 (2.0) | Updated in 2003 (5.0) ▪ 2007 (6.0) ▪ 2014 (10.0)
Text
Wolfram Research (1991), AbsoluteTime, Wolfram Language function, https://reference.wolfram.com/language/ref/AbsoluteTime.html (updated 2014).
CMS
Wolfram Language. 1991. "AbsoluteTime." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/AbsoluteTime.html.
APA
Wolfram Language. (1991). AbsoluteTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AbsoluteTime.html
BibTeX
@misc{reference.wolfram_2026_absolutetime, author="Wolfram Research", title="{AbsoluteTime}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/AbsoluteTime.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_absolutetime, organization={Wolfram Research}, title={AbsoluteTime}, year={2014}, url={https://reference.wolfram.com/language/ref/AbsoluteTime.html}, note=[Accessed: 12-June-2026]}