Interface DateTable

An object the represents a date or time. Used with os.date and os.time.

interface DateTable {
    day: number;
    hour?: number;
    isdst?: boolean;
    min?: number;
    month: number;
    sec?: number;
    wday?: number;
    yday?: number;
    year: number;
}

Properties

day: number

The day. [1, 31]

hour?: number

The hour. [0, 23]

isdst?: boolean

Whether this object represents a daylight savings time.

min?: number

The minute. [0, 59]

month: number

The month. [1, 12]

sec?: number

The second. [0, 59]

wday?: number

The day of the week. [1, 7]

yday?: number

The number of days into the year. [1, 366]

year: number

The year.