import { DateFormat } from "./DateFormat"; import { TimeSpan } from "./TimeSpan"; import { WeekDay } from "./WeekDay"; export declare class DateTime { private _ticks; get Ticks(): number; constructor(_ticks?: number); toString(): string; static get min(): DateTime; static get max(): DateTime; static get now(): DateTime; asLocalToUtc(): DateTime; asUtcToLocal(): DateTime; private static _invalidFormatMessage; static tryParse(text: string, refResult: { Result: DateTime; ErrorMessage: string; }, format?: DateFormat): boolean; /** * Valid formats should satisfy the following two conditions: (1) it should be composed of [3, 5, 6, or 7] parts. 3 parts for date only, 6 parts for date and time excluding millisec part, and 7 prats for the whole date and time parts including the milliseconds part. (2) Parts separators could be either one or more spaces or any non-digit character preceded or succeeded by zero or more white spaces. * @param dateTimeInText A text representation of a DateTime * @param The date time format to parse against. */ static parse(dateTimeInText: string, format?: DateFormat): DateTime; get year(): number; get month(): number; get dayOfMonth(): number; get dayOfWeek(): WeekDay; get hour(): number; get minute(): number; get second(): number; get milliSecond(): number; addDays(daysToAdd: number): DateTime; addHours(hoursToAdd: number): DateTime; addMinutes(minutesToAdd: number): DateTime; addSeconds(secondsToAdd: number): DateTime; addMilliseconds(millisecondsToAdd: number): DateTime; compare(otherDateTime: DateTime): 1 | -1 | 0; get date(): DateTime; subtractDate(another: DateTime): TimeSpan; subtractSpan(timeSpan: TimeSpan): DateTime; equals(another: DateTime): boolean; get timeOfDay(): TimeSpan; } //# sourceMappingURL=DateTime.d.ts.map