toISOString(): string;
toJSON(): string;
-
+
isValid(): boolean;
/**
type MomentFormatSpecification = string | MomentBuiltinFormat | (string | MomentBuiltinFormat)[];
- namespace unitOfTime {
+ export namespace unitOfTime {
type Base = (
"year" | "years" | "y" |
"month" | "months" | "M" |
type _date = "date" | "dates" | "D";
type DurationConstructor = Base | _quarter | _isoWeek;
- type DurationAs = Base;
+ export type DurationAs = Base;
- type StartOf = Base | _quarter | _isoWeek | _date | void; // null
+ export type StartOf = Base | _quarter | _isoWeek | _date | void; // null
- type Diff = Base | _quarter;
+ export type Diff = Base | _quarter;
- type MomentConstructor = Base | _date;
+ export type MomentConstructor = Base | _date;
- type All = Base | _quarter | _isoWeek | _date |
+ export type All = Base | _quarter | _isoWeek | _date |
"weekYear" | "weekYears" | "gg" |
"isoWeekYear" | "isoWeekYears" | "GG" |
"dayOfYear" | "dayOfYears" | "DDD" |
export var defaultFormat: string;
export var defaultFormatUtc: string;
-
- export var HTML5_FMT: {
+
+ export var HTML5_FMT: {
DATETIME_LOCAL: string,
DATETIME_LOCAL_SECONDS: string,
DATETIME_LOCAL_MS: string,
- DATE: string,
- TIME: string,
- TIME_SECONDS: string,
- TIME_MS: string,
- WEEK: string,
+ DATE: string,
+ TIME: string,
+ TIME_SECONDS: string,
+ TIME_MS: string,
+ WEEK: string,
MONTH: string
};