FromAbsoluteTime

FromAbsoluteTime[time]

gives a date object corresponding to an absolute time specification as given by AbsoluteTime.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a DateObject from an absolute time specification:

Get the start date for absolute time:

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:

DateFormat  (2)

Use long date format:

Specify your own format:

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:

Wolfram Research (2017), FromAbsoluteTime, Wolfram Language function, https://reference.wolfram.com/language/ref/FromAbsoluteTime.html (updated 2023).

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

BibTeX

@misc{reference.wolfram_2023_fromabsolutetime, author="Wolfram Research", title="{FromAbsoluteTime}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/FromAbsoluteTime.html}", note=[Accessed: 19-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_fromabsolutetime, organization={Wolfram Research}, title={FromAbsoluteTime}, year={2023}, url={https://reference.wolfram.com/language/ref/FromAbsoluteTime.html}, note=[Accessed: 19-April-2024 ]}