Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExifDateTime

Encodes an ExifDateTime with an optional tz offset in minutes.

Hierarchy

  • ExifDateTime

Index

Constructors

constructor

  • new ExifDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond?: undefined | number, tzoffsetMinutes?: undefined | number): ExifDateTime
  • Parameters

    • year: number
    • month: number
    • day: number
    • hour: number
    • minute: number
    • second: number
    • Optional millisecond: undefined | number
    • Optional tzoffsetMinutes: undefined | number

    Returns ExifDateTime

Properties

day

day: number

hour

hour: number

Optional millisecond

millisecond: undefined | number

minute

minute: number

month

month: number

second

second: number

Optional tzoffsetMinutes

tzoffsetMinutes: undefined | number

year

year: number

Accessors

millis

  • get millis(): undefined | number

zone

  • get zone(): undefined | string

Methods

toDate

  • toDate(): Date

toDateTime

  • toDateTime(): DateTime

toISOString

  • toISOString(options?: ISOTimeOptions): string
  • Parameters

    • Default value options: ISOTimeOptions = {}

    Returns string

toString

  • toString(): string

Static fromDateTime

Static fromEXIF

  • Try to parse a date-time string from EXIF. If there is not both a date and a time component, returns undefined.

    Parameters

    • text: string

      from EXIF metadata

    • Optional defaultZone: Maybe<string>

      a "zone name" which may be IANA, like "America/Los_Angeles", or an offset, like "UTC-3". See offsetMinutesToZoneName.

    Returns Maybe<ExifDateTime>

Static fromISO

Generated using TypeDoc