/** * Represents a specific date and time. */ export declare class DateTime { private readonly year; private readonly month; private readonly date; private readonly hour; private readonly minute; private readonly second; private readonly millisecond; private readonly timezone; /** * Creates a new instance of the DateTime class. * * @param {number} year - The year of the date. * @param {number} month - The month of the date (0-11). * @param {number} date - The day of the month. * @param {number} hour - The hour of the day (0-23). * @param {number} minute - The minutes. * @param {number} second - The seconds. * @param {number} millisecond - The milliseconds. * @param {string} timezone - The name of the timezone of the date (e.g. 'GMT', 'UTC', 'America/New_York'). * * @return {void} */ constructor(year: number, month: number, date: number, hour: number, minute: number, second: number, millisecond: number, timezone: string); /** * Retrieves the year of the given date. * * @returns {number} The year. */ getYear(): number; /** * Retrieves the month of the given date. * * @returns {number} The month (0-11). */ getMonth(): number; /** * Retrieves the day of the month. * * @return {number} The day of the month. */ getDate(): number; /** * Retrieves the hour of the day. * * @return {number} The hour of the day (0-23). */ getHour(): number; /** * Retrieves the minutes. * * @return {number} The minutes. */ getMinute(): number; /** * Retrieves the seconds. * * @return {number} The seconds. */ getSecond(): number; /** * Retrieves the milliseconds. * * @return {number} The milliseconds. */ getMillisecond(): number; /** * Retrieves the name of the timezone of the date (e.g. 'GMT', 'UTC', 'America/New_York'). * * @return {number} The timezone. */ getTimeZone(): string; /** * Returns a new DateTime object with the same properties as the current instance. * * @returns {DateTime} A new DateTime object cloned from the current instance. */ clone(): DateTime; }