@thi.ng/date 2.2.0 → 2.2.1
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/datetime.d.ts +1 -1
- package/package.json +9 -9
- package/relative.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/datetime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ICompare, ICopy, IEqualsDelta, IEquiv } from "@thi.ng/api";
|
|
2
2
|
import { MaybeDate, Period, Precision } from "./api.js";
|
|
3
|
-
export declare const dateTime: (epoch?: MaybeDate
|
|
3
|
+
export declare const dateTime: (epoch?: MaybeDate, prec?: Precision) => DateTime;
|
|
4
4
|
/**
|
|
5
5
|
* Epoch abstraction with adjustable coarseness/precision. All date fields in
|
|
6
6
|
* UTC only.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/date",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Datetime types, relative dates, math, iterators, composable formatters, locales",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/checks": "^3.
|
|
39
|
-
"@thi.ng/strings": "^3.3.
|
|
37
|
+
"@thi.ng/api": "^8.3.7",
|
|
38
|
+
"@thi.ng/checks": "^3.2.0",
|
|
39
|
+
"@thi.ng/strings": "^3.3.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.
|
|
43
|
-
"@thi.ng/testament": "^0.2.
|
|
42
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
43
|
+
"@thi.ng/testament": "^0.2.8",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.22.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"typedoc": "^0.22.17",
|
|
47
|
+
"typescript": "^4.7.3"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"datastructure",
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"thi.ng": {
|
|
130
130
|
"year": 2020
|
|
131
131
|
},
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
133
133
|
}
|
package/relative.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import { DateTime } from "./datetime.js";
|
|
|
37
37
|
* @param offset -
|
|
38
38
|
* @param base -
|
|
39
39
|
*/
|
|
40
|
-
export declare const parseRelative: (offset: string, base?: MaybeDate
|
|
40
|
+
export declare const parseRelative: (offset: string, base?: MaybeDate) => DateTime | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Applies the given relative offset (defined by `num` and `period`) to the
|
|
43
43
|
* optionally given `base` date (default: now). If `num < 0` the result date
|