-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
36 lines (26 loc) · 1.04 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/// <reference path="./date-times.d.ts" />
import DateConstants = require("./DateConstants");
import DotNetJsonDate = require("./DotNetJsonDate");
import Dates = require("./Dates");
import DateUtil = require("./DateUtil");
import Timestamps = require("./Timestamps");
var dc = DateConstants;
var dnjd = DotNetJsonDate;
var d = Dates;
var du = DateUtil;
var ts = Timestamps;
/** DateTimes - contains static sub-modules for date and time operations, including:
* - DateConstants: for date constants such as the days of the week or milliseconds in a day
* - Dates: for working with JS 'Date' objects and converting to display strings
* - DateUtil: for day-of-week lookup, isBefore(), isSameDate(), etc.
* - Timestamps: working with UTC millisecond Unix epoch offsets
* - DotNetJsonDate: for working with .NET JSON serialized date-time strings
*/
module DateTimes {
export var DateConstants = dc;
export var Dates = d;
export var DateUtil = du;
export var Timestamps = ts;
export var DotNetJsonDate = dnjd;
}
export = DateTimes;