fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-18 14:45:07 +02:00
parent f8540b8076
commit b5509711e7

View File

@ -20,6 +20,10 @@ export class ExtendedDate extends Date {
return new ExtendedDate(milliSeconds);
}
public static fromDate(dateArg: Date) {
return new ExtendedDate(dateArg.getTime());
}
public static fromEuropeanDate(europeanDate: string) {
const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate);
const luxonDate = plugins.luxon.DateTime.utc(
@ -68,6 +72,9 @@ export class ExtendedDate extends Date {
}
// INSTANCE
public timezone: TAvailableZone;
constructor(unixMilli: number) {
super(unixMilli);
}