FromAbsoluteTime
FromAbsoluteTime[time]
gives a date object corresponding to an absolute time specification as given by AbsoluteTime.
Details and Options
- The absolute time is given as a number of seconds since midnight on January 1, 1900, in the time zone given by $TimeZone.
- FromAbsoluteTime[date,TimeZone->z] generates a DateObject with TimeZone->z. The default value is $TimeZone.
- The following options can be specified for generated dates:
-
CalendarType Automatic calendar system being used DateFormat Automatic format used to display date DateGranularity Automatic calendar granularity for the date TimeSystem "SmearedUTC" time system being used TimeZone Automatic time zone being used
Examples
open allclose allBasic Examples (2)
Scope (2)
FromAbsoluteTime accepts integer, real, and rational inputs:
Inputs that are not NumberQ are not accepted:
Options (7)
CalendarType (1)
By default, dates are generated as Gregorian calendar dates:
Use CalendarType"AbsoluteTime" to generate an object with the "AbsoluteTime" calendar:
DateGranularity (1)
By default, dates are generated with "Instant" granularity:
Use DateGranularity"Day" to generate a day granular date:
TimeSystem (1)
Specify the output TimeSystem for the DateObject:
TimeZone (2)
Specify the output TimeZone for the DateObject:
Time zone specifications can be a numeric offset from GMT, a time zone string, or a location entity:
Properties & Relations (1)
AbsoluteTime returns absolute time specifications:
Text
Wolfram Research (2017), FromAbsoluteTime, Wolfram Language function, https://reference.wolfram.com/language/ref/FromAbsoluteTime.html (updated 2023).
CMS
Wolfram Language. 2017. "FromAbsoluteTime." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/FromAbsoluteTime.html.
APA
Wolfram Language. (2017). FromAbsoluteTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FromAbsoluteTime.html