Skip to content

Commit c7d0947

Browse files
authored
Development (#5)
* Extensive date/time formatting and parsing options added, highly compatible with Moment.js, and covering more ISO-8601 formats. * Broad internationalization/localization support. * Extensive API documentation. * Live and optionally automatic, tz database updates. * Date/time sorting, min/max, and comparison options. * Support for both ISO and locale-specific week-based calendar dates, e.g. 2021-W23-2. * YMDDate and DateTime interfaces expanded with both short and long field names. * Improved date/time validation. * Mutable and immutable DateTime instances. * Improved DateTime.add() method * New DateTime manipulation methods roll(), set(), startOf(), and endOf(). * DATELESS and ZONELESS DateTime instances. * Improved support for ESM, CommonJS, ES2015, ES5. * Code organized to facilitate tree-shaking and Angular optimizations. * Updated to 2021a.
1 parent e5511ce commit c7d0947

33 files changed

Lines changed: 16328 additions & 3011 deletions

.eslintrc.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
}
4343
],
4444
"curly": "off",
45+
"@typescript-eslint/explicit-function-return-type": "error",
4546
"indent": "off",
4647
"@typescript-eslint/indent": [
4748
"error",
@@ -54,12 +55,14 @@
5455
"ignoreComments": true,
5556
"ignoredNodes": [
5657
"ClassProperty[value]",
57-
"NewExpression[arguments] :expression *"
58+
"NewExpression[arguments] :expression *",
59+
"TSUnionType"
5860
],
5961
"ObjectExpression": "first",
6062
"SwitchCase": 1
6163
}
6264
],
65+
"guard-for-in": "error",
6366
"key-spacing": "off",
6467
"multiline-ternary": "off",
6568
"no-control-regex": "off",
@@ -69,6 +72,7 @@
6972
"no-multi-spaces": "off",
7073
"no-new": "off",
7174
"no-return-assign": "off",
75+
"no-unexpected-multiline": "off",
7276
"no-unused-expressions": "off",
7377
"no-useless-constructor": "off",
7478
"@typescript-eslint/no-useless-constructor": "error",
@@ -113,5 +117,13 @@
113117
"exceptRange": true
114118
}
115119
]
116-
}
120+
},
121+
"overrides": [
122+
{
123+
"files": ["*.js", "*.cjs"],
124+
"rules": {
125+
"@typescript-eslint/explicit-function-return-type": "off"
126+
}
127+
}
128+
]
117129
}

.markdownlint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"default": true,
3+
"MD004": false,
4+
"MD007": false,
5+
"MD013": false,
6+
"MD033": false
7+
}

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/.eslintrc.json
66
/.eslintignore
77
/docs
8+
/img
89
/.nyc_output
910
*.js.map
1011
*.spec.d.ts

.vscode/settings.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"cSpell.words": [
3+
"AEST",
4+
"DDTHH",
5+
"Februar",
6+
"MILLI",
7+
"SSSZ",
8+
"Subzones",
9+
"ampm",
10+
"dateandtime",
11+
"dowmi",
12+
"endof",
13+
"gettersetters",
14+
"getterssetters",
15+
"helmikuuta",
16+
"intldatetimeformat",
17+
"juin",
18+
"minmax",
19+
"momentjs",
20+
"startof",
21+
"timezone's",
22+
"ttime",
23+
"tubulartime",
24+
"ymddate"
25+
],
26+
"markdown.extension.tableFormatter.enabled": false,
27+
"markdown.extension.toc.levels": "2..6"
28+
}

README.md

Lines changed: 1394 additions & 6 deletions
Large diffs are not rendered by default.

img/apia_dec_2011_cal.jpg

32.2 KB
Loading

img/mhl_sep_30_1969.jpg

32.7 KB
Loading

img/montage.jpg

165 KB
Loading

0 commit comments

Comments
 (0)