Constructors
constructor
- new ExifTime(hour, minute, second, millisecond?, rawValue?, zoneName?, inferredZone?): ExifTime
Parameters
- hour: number
- minute: number
- second: number
Optional
millisecond: numberOptional
rawValue: stringOptional
zoneName: Maybe<string>Optional
inferredZone: boolean
Properties
Optional
Readonly
inferredZone
inferredZone?: boolean
Optional
Readonly
millisecond
millisecond?: number
Readonly
minute
minute: number
Optional
Readonly
rawValue
rawValue?: string
Readonly
second
second: number
Accessors
hasZone
- get hasZone(): boolean
Returns boolean
millis
- get millis(): undefined | number
Returns undefined | number
Methods
setZone
- setZone(zone, opts?): Maybe<ExifTime>
Parameters
- zone: string | Zone<boolean>
Optional
opts: ZoneOptions
toDateTime
- toDateTime(): DateTime<boolean>
Returns DateTime<boolean>
toExifString
- toExifString(): string
Returns string
toISOString
- toISOString(): string
Returns string
toJSON
- toJSON(): {
_ctor: string;
hour: number;
inferredZone: undefined | boolean;
millisecond: undefined | number;
minute: number;
rawValue: undefined | string;
second: number;
zone: Maybe<string>;
} Returns {
_ctor: string;
hour: number;
inferredZone: undefined | boolean;
millisecond: undefined | number;
minute: number;
rawValue: undefined | string;
second: number;
zone: Maybe<string>;
}
_ctor: string
hour: number
inferredZone: undefined | boolean
millisecond: undefined | number
minute: number
rawValue: undefined | string
second: number
zone: Maybe<string>
toString
- toString(): string
Returns string
Static
fromDateTime
- fromDateTime(dt, rawValue?, zone?, inferredZone?, unsetMilliseconds?): Maybe<ExifTime>
Parameters
- dt: Maybe<DateTime<boolean>>
Optional
rawValue: stringOptional
zone: stringOptional
inferredZone: booleanOptional
unsetMilliseconds: boolean
Static
fromEXIF
- fromEXIF(text, defaultZone?): Maybe<ExifTime>
Parameters
- text: string
Optional
defaultZone: Maybe<string>
Static
fromJSON
- fromJSON(json): ExifTime
Parameters
- json: {
_ctor: string;
hour: number;
inferredZone: undefined | boolean;
millisecond: undefined | number;
minute: number;
rawValue: undefined | string;
second: number;
zone: Maybe<string>;
}_ctor: string
hour: number
inferredZone: undefined | boolean
millisecond: undefined | number
minute: number
rawValue: undefined | string
second: number
zone: Maybe<string>
Encodes an ExifTime (which may not have a timezone offset)