@pallasoft/ps-utilities 1.0.5 → 1.0.6
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.
|
@@ -7,6 +7,7 @@ export declare class DateService {
|
|
|
7
7
|
static calculateTimeRemaining(date: string | number, placeholder: string): string;
|
|
8
8
|
static getNextWeek(): string;
|
|
9
9
|
static getNextMonth(): string;
|
|
10
|
+
static getNextYear(): string;
|
|
10
11
|
static formatDate(date: string | number, format: string): string;
|
|
11
12
|
static formatDateToString(date: string | number, short?: boolean): string;
|
|
12
13
|
static formatTimeToString(date: string | number, short?: boolean): string;
|
|
@@ -59,6 +59,9 @@ var DateService = /** @class */ (function () {
|
|
|
59
59
|
DateService.getNextMonth = function () {
|
|
60
60
|
return (0, dayjs_1.default)().add(1, 'month').toISOString();
|
|
61
61
|
};
|
|
62
|
+
DateService.getNextYear = function () {
|
|
63
|
+
return (0, dayjs_1.default)().add(1, 'year').toISOString();
|
|
64
|
+
};
|
|
62
65
|
DateService.formatDate = function (date, format) {
|
|
63
66
|
return (0, dayjs_1.default)(date).format(format);
|
|
64
67
|
};
|