@bbn/bbn 2.0.69 → 2.0.71
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/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/classes/dt.d.ts +2 -0
- package/dist/dt/classes/dt.js +6 -0
- package/package.json +1 -1
package/dist/dt/classes/dt.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export declare abstract class bbnDt<TValue extends bbnDtTemporal> {
|
|
|
84
84
|
get WW(): string;
|
|
85
85
|
get W(): string;
|
|
86
86
|
format(format?: string): string;
|
|
87
|
+
getWeekday(n: 0 | 1 | 2 | 3 | 4 | 5 | 6, mode?: string, locale?: string): string;
|
|
87
88
|
/**
|
|
88
89
|
* Returns a NEW date that is the next (or previous if past=true)
|
|
89
90
|
* occurrence of the given weekday, starting from this.#value.
|
|
@@ -100,5 +101,6 @@ export declare abstract class bbnDt<TValue extends bbnDtTemporal> {
|
|
|
100
101
|
fromDate(date: any, unit?: string): string;
|
|
101
102
|
startOf(unit?: string): bbnDt<any>;
|
|
102
103
|
endOf(unit?: string): bbnDt<any>;
|
|
104
|
+
clone(): bbnDt<any>;
|
|
103
105
|
}
|
|
104
106
|
export default bbnDt;
|
package/dist/dt/classes/dt.js
CHANGED
|
@@ -521,6 +521,9 @@ export class bbnDt {
|
|
|
521
521
|
}
|
|
522
522
|
return str;
|
|
523
523
|
}
|
|
524
|
+
getWeekday(n, mode = 'long', locale) {
|
|
525
|
+
return getWeekday(n, mode, locale);
|
|
526
|
+
}
|
|
524
527
|
/**
|
|
525
528
|
* Returns a NEW date that is the next (or previous if past=true)
|
|
526
529
|
* occurrence of the given weekday, starting from this.#value.
|
|
@@ -826,6 +829,9 @@ export class bbnDt {
|
|
|
826
829
|
throw new Error("Unsupported kind in endOf");
|
|
827
830
|
}
|
|
828
831
|
}
|
|
832
|
+
clone() {
|
|
833
|
+
return this.withValue(this.value);
|
|
834
|
+
}
|
|
829
835
|
}
|
|
830
836
|
_bbnDt_value = new WeakMap();
|
|
831
837
|
/** System time zone ID (e.g. "Europe/Rome") */
|