sim-node-lib 0.0.37 → 0.0.38
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.
|
@@ -3,7 +3,7 @@ export declare class DateHelper {
|
|
|
3
3
|
static validateDateBetweenTwoDatesWithDate(fromDate: Date, toDate: Date, givenDate: Date): boolean;
|
|
4
4
|
static validateDateBetweenTwoDatesWithString(fromDate: Date, toDate: Date, givenDate: Date): boolean;
|
|
5
5
|
static validateCurrentDateBetweenTwoDates(fromDate: Date, toDate: Date): boolean;
|
|
6
|
-
static dateToStringFormatBR(date:
|
|
7
|
-
static dateToStringFormat(date:
|
|
6
|
+
static dateToStringFormatBR(date: Date): string;
|
|
7
|
+
static dateToStringFormat(date: Date, format: string): string;
|
|
8
8
|
static getDifferenceInMinutes(startData: Date, endData: Date): number;
|
|
9
9
|
}
|
|
@@ -19,8 +19,7 @@ class DateHelper {
|
|
|
19
19
|
return this.dateToStringFormat(date, 'DD/MM/yyyy');
|
|
20
20
|
}
|
|
21
21
|
static dateToStringFormat(date, format) {
|
|
22
|
-
|
|
23
|
-
return data;
|
|
22
|
+
return moment(date).format(format);
|
|
24
23
|
}
|
|
25
24
|
static getDifferenceInMinutes(startData, endData) {
|
|
26
25
|
return Math.trunc((Math.abs(startData.getTime() - endData.getTime()) / 36e5) * 60);
|