@pallasoft/ps-utilities 1.0.0 → 1.0.2
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,5 +7,6 @@ export declare class DateService {
|
|
|
7
7
|
static getNextWeek(): string;
|
|
8
8
|
static getNextMonth(): string;
|
|
9
9
|
static formatDateToString(date: string | number, short?: boolean): string;
|
|
10
|
+
static formatTimeToString(date: string | number, short?: boolean): string;
|
|
10
11
|
static diffInMins(startDate: string | number, endDate: string | number): number;
|
|
11
12
|
}
|
|
@@ -48,6 +48,9 @@ var DateService = /** @class */ (function () {
|
|
|
48
48
|
DateService.formatDateToString = function (date, short) {
|
|
49
49
|
return (0, dayjs_1.default)(date).format(short ? 'DD MMM, YYYY' : 'DD MMMM, YYYY');
|
|
50
50
|
};
|
|
51
|
+
DateService.formatTimeToString = function (date, short) {
|
|
52
|
+
return (0, dayjs_1.default)(date).format(short ? 'DD MMM, YYYY @ hh:MM:ss A' : 'DD MMMM, YYYY @ hh:MM:ss A');
|
|
53
|
+
};
|
|
51
54
|
DateService.diffInMins = function (startDate, endDate) {
|
|
52
55
|
var start = (0, dayjs_1.default)(startDate);
|
|
53
56
|
var end = (0, dayjs_1.default)(endDate);
|