The fields of a datetime

interface DatetimeFields {
    day: number;
    hour: number;
    minute: number;
    month: number;
    second: number;
    second_fraction: number;
    utc_offset: null | number;
    year: number;
}

Hierarchy (View Summary)

Properties

day: number

1-31 day-of-month number

hour: number

the 0-23 hour of the day

minute: number

the 0-59 minute of the hour

month: number

1-12 month number

second: number

the 0-59 second of the minute

second_fraction: number

0.0-0.999... faction of the second

utc_offset: null | number

The offset from utc

year: number

full year