namirasoft-core
Advanced tools
Comparing version 1.4.28 to 1.4.29
@@ -41,3 +41,4 @@ export * from "./BaseDatabaseRow"; | ||
export * from "./TimeOperation"; | ||
export * from "./SetTimeouService"; | ||
export * from "./URLOperation"; | ||
export * from "./VersionOperation"; |
@@ -57,4 +57,5 @@ "use strict"; | ||
__exportStar(require("./TimeOperation"), exports); | ||
__exportStar(require("./SetTimeouService"), exports); | ||
__exportStar(require("./URLOperation"), exports); | ||
__exportStar(require("./VersionOperation"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -41,2 +41,3 @@ import moment from "moment"; | ||
static secondsAgo(seconds: number, date: Date): Date; | ||
static millisecondsAgo(milliseconds: number, date: Date): Date; | ||
static later(num: number, type: moment.DurationInputArg2, date?: Date | null): Date; | ||
@@ -48,2 +49,3 @@ static monthsLater(months: number, date: Date): Date; | ||
static secondsLater(seconds: number, date: Date): Date; | ||
static millisecondsLater(milliseconds: number, date: Date): Date; | ||
static getDuration(startDate: Date, endDate: Date, zeroAllOnPassed?: boolean): { | ||
@@ -50,0 +52,0 @@ passed: boolean; |
@@ -157,2 +157,5 @@ "use strict"; | ||
} | ||
static millisecondsAgo(milliseconds, date) { | ||
return this.millisecondsLater(milliseconds * -1, date); | ||
} | ||
static later(num, type, date = null) { | ||
@@ -180,2 +183,5 @@ if (!date) | ||
} | ||
static millisecondsLater(milliseconds, date) { | ||
return this.later(milliseconds, 'milliseconds', date); | ||
} | ||
static getDuration(startDate, endDate, zeroAllOnPassed = false) { | ||
@@ -182,0 +188,0 @@ if (!endDate) |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.4.28", | ||
"version": "1.4.29", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -41,3 +41,4 @@ export * from "./BaseDatabaseRow"; | ||
export * from "./TimeOperation"; | ||
export * from "./SetTimeouService"; | ||
export * from "./URLOperation"; | ||
export * from "./VersionOperation"; |
@@ -194,2 +194,7 @@ import moment from "moment"; | ||
} | ||
static millisecondsAgo(milliseconds: number, date: Date): Date | ||
{ | ||
return this.millisecondsLater(milliseconds * -1, date); | ||
} | ||
// later | ||
@@ -224,2 +229,6 @@ static later(num: number, type: moment.DurationInputArg2, date: Date | null = null): Date | ||
} | ||
static millisecondsLater(milliseconds: number, date: Date): Date | ||
{ | ||
return this.later(milliseconds, 'milliseconds', date); | ||
} | ||
static getDuration(startDate: Date, endDate: Date, zeroAllOnPassed: boolean = false) | ||
@@ -226,0 +235,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
431188
182
5754