UNPKG

universal-common

Version:

Library that provides useful missing base class library functionality.

17 lines (14 loc) 492 B
/** * Represents the kind of time represented by a DateTime object. */ export default class DateTimeKind { static #UNSPECIFIED = 0; static #UTC = 1; static #LOCAL = 2; /** @returns {number} Time is unspecified */ static get UNSPECIFIED() { return this.#UNSPECIFIED; } /** @returns {number} Time is UTC */ static get UTC() { return this.#UTC; } /** @returns {number} Time is local */ static get LOCAL() { return this.#LOCAL; } }