Optional
millisecond: numberOptional
tzoffsetMinutes: numberOptional
rawValue: stringOptional
zoneName: stringOptional
inferredZone: booleanReadonly
dayReadonly
hourOptional
Readonly
inferredOptional
Readonly
millisecondReadonly
minuteReadonly
monthOptional
Readonly
rawReadonly
secondOptional
Readonly
tzoffsetReadonly
yearReadonly
zoneOptional
Readonly
zoneOptional
opts: ZoneOptions & { inferredZone?: boolean }CAUTION: This instance will inherit the system timezone if this instance has an unset zone (as Luxon doesn't support "unset" timezones)
Optional
overrideZone: Maybe<string>Optional
overrideZone: Maybe<string>the epoch milliseconds of this
Static
fromOptional
defaultZone: Maybe<string>Static
fromStatic
fromEXIFTry to parse a date-time string from EXIF. If there is not both a date
and a time component, returns undefined
.
from EXIF metadata
Optional
defaultZone: Maybe<string>a "zone name" to use as a backstop, or default, if
text
doesn't specify a zone. This may be IANA-formatted, like
"America/Los_Angeles", or an offset, like "UTC-3". See
offsetMinutesToZoneName
.
Static
fromOptional
defaultZone: Maybe<string>Static
fromParse the given date-time string, EXIF-formatted.
from EXIF metadata, in y:M:d H:m:s
format (with optional
sub-seconds and/or timezone)
Optional
defaultZone: Maybe<string>a "zone name" to use as a backstop, or default, if
text
doesn't specify a zone. This may be IANA-formatted, like
"America/Los_Angeles", or an offset, like "UTC-3". See
offsetMinutesToZoneName
.
Static
fromISOOptional
defaultZone: Maybe<string>Static
fromJSONa new ExifDateTime from the given JSON. Note that this instance may not be valid.
Static
fromCreate an ExifDateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
a number of milliseconds since 1970 UTC
the original parsed string input
the zone to place the DateTime into. Defaults to 'local'.
a locale to set on the resulting DateTime instance
the output calendar to set on the resulting DateTime instance
the numbering system to set on the resulting DateTime instance
Optional
rawValue?: stringthe original parsed string input
Static
now
Encapsulates encoding and decoding EXIF date and time strings, along with timezone handling functionality.
Key features:
EXIF datetime strings don't typically include timezone information. This class provides mechanisms to associate timezone data from other EXIF tags (like GPS position or timezone offset), and distinguishes between explicitly set and inferred timezone information.