@thi.ng/date 2.5.0 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/datetime.js +7 -0
- package/package.json +11 -12
- package/relative.js +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/datetime.js
CHANGED
|
@@ -13,6 +13,13 @@ export const dateTime = (epoch, prec) => new DateTime(epoch, prec);
|
|
|
13
13
|
* UTC only.
|
|
14
14
|
*/
|
|
15
15
|
export class DateTime {
|
|
16
|
+
t;
|
|
17
|
+
s;
|
|
18
|
+
m;
|
|
19
|
+
h;
|
|
20
|
+
d;
|
|
21
|
+
M;
|
|
22
|
+
y;
|
|
16
23
|
constructor(epoch = Date.now(), prec = "t") {
|
|
17
24
|
const x = ensureDate(epoch);
|
|
18
25
|
const id = __precisionToID(prec);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/date",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Datetime types, relative dates, math, iterators, composable formatters, locales",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -28,23 +28,22 @@
|
|
|
28
28
|
"clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc internal i18n",
|
|
29
29
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
30
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
-
"doc:readme": "
|
|
32
|
-
"doc:stats": "tools:module-stats",
|
|
31
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
33
32
|
"pub": "yarn npm publish --access public",
|
|
34
|
-
"test": "
|
|
33
|
+
"test": "bun test"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.9.
|
|
38
|
-
"@thi.ng/checks": "^3.4.
|
|
39
|
-
"@thi.ng/strings": "^3.
|
|
36
|
+
"@thi.ng/api": "^8.9.9",
|
|
37
|
+
"@thi.ng/checks": "^3.4.9",
|
|
38
|
+
"@thi.ng/strings": "^3.7.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.38.
|
|
43
|
-
"@thi.ng/testament": "^0.
|
|
41
|
+
"@microsoft/api-extractor": "^7.38.3",
|
|
42
|
+
"@thi.ng/testament": "^0.4.2",
|
|
44
43
|
"rimraf": "^5.0.5",
|
|
45
44
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.25.
|
|
47
|
-
"typescript": "^5.
|
|
45
|
+
"typedoc": "^0.25.3",
|
|
46
|
+
"typescript": "^5.3.2"
|
|
48
47
|
},
|
|
49
48
|
"keywords": [
|
|
50
49
|
"datastructure",
|
|
@@ -132,5 +131,5 @@
|
|
|
132
131
|
"thi.ng": {
|
|
133
132
|
"year": 2020
|
|
134
133
|
},
|
|
135
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "f6de41f4991704fdbbb2899bb430ed4f4f6efab0\n"
|
|
136
135
|
}
|
package/relative.js
CHANGED