@pushrocks/smarttime
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -5,4 +5,4 @@ export declare type TAvailableZone = 'Europe/Berlin'; | ||
/** */ | ||
static fromEuropeanDateAndTime(europeanDateArg: string, timeArg: string, zoneArg: TAvailableZone): ExtendedDate; | ||
static fromEuropeanDateAndTime(europeanDateArg: string, timeArg?: string, zoneArg?: TAvailableZone): ExtendedDate; | ||
constructor(unixMilli: number); | ||
} |
@@ -22,3 +22,3 @@ "use strict"; | ||
/** */ | ||
static fromEuropeanDateAndTime(europeanDateArg, timeArg, zoneArg) { | ||
static fromEuropeanDateAndTime(europeanDateArg, timeArg = '12:00', zoneArg = 'Europe/Berlin') { | ||
const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDateArg); | ||
@@ -40,2 +40,2 @@ const sliceDate = (dateString) => { | ||
exports.ExtendedDate = ExtendedDate; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLmNsYXNzZXMuZXh0ZW5kZWRkYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR0aW1lLmNsYXNzZXMuZXh0ZW5kZWRkYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLDZEQUErQztBQUkvQyxNQUFhLFlBQWEsU0FBUSxJQUFJO0lBQzdCLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxZQUFvQjtRQUNqRCxNQUFNLFNBQVMsR0FBRyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDeEQsTUFBTSxTQUFTLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUMxQyxVQUFVLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsT0FBTztRQUNqQyxVQUFVLENBQUMsU0FBUyxDQUF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UFBZTtRQUV6QyxNQUFNLFNBQVMsR0FBRyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLENBQUM7UUFDM0QsTUFBTSxTQUFTLEdBQUcsQ0FBQyxVQUFrQixFQUFFLEVBQUU7WUFDdkMsT0FBTyxJQUFJLFVBQVUsRUFBRSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ3BDLENBQUMsQ0FBQztRQUNGLE1BQU0sY0FBYyxHQUFHLEdBQUcsU0FBUyxDQUFDLENBQUMsQ0FBQyxJQUFJLFNBQVMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxTQUFTLENBQzVFLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FDYixJQUFJLE9BQU8sRUFBRSxDQUFDO1FBQ2YsTUFBTSxTQUFTLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLGNBQWMsRUFBRTtZQUMvRCxJQUFJLEVBQUUsT0FBTztTQUNkLENBQUMsQ0FBQztRQUNILE1BQU0sU0FBUyxHQUFHLFNBQVMsQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUN2QyxPQUFPLElBQUksWUFBWSxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ3JDLENBQUM7SUFFRCxZQUFZLFNBQWlCO1FBQzNCLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNuQixDQUFDO0NBQ0Y7QUFuQ0Qsb0NBbUNDIn0= |
{ | ||
"name": "@pushrocks/smarttime", | ||
"private": false, | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"description": "handle time in smart ways", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -20,4 +20,4 @@ import * as plugins from './smarttime.plugins'; | ||
europeanDateArg: string, | ||
timeArg: string, | ||
zoneArg: TAvailableZone | ||
timeArg: string = '12:00', | ||
zoneArg: TAvailableZone = 'Europe/Berlin' | ||
) { | ||
@@ -24,0 +24,0 @@ const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDateArg); |
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
39343