fix(core): update

This commit is contained in:
2019-04-10 11:34:30 +02:00
parent f6be9b71f1
commit cff5b5a7f4
10 changed files with 895 additions and 216 deletions

View File

@ -1,5 +1,6 @@
import * as plugins from './smarttime.plugins';
export * from './smarttime.classes.cronmanager';
export * from './smarttime.classes.date';
export * from './smarttime.classes.hrtmeasurement';
export * from './smarttime.classes.timer';

View File

@ -0,0 +1,3 @@
import * as plugins from './smarttime.plugins';
export class CronManager {}

View File

@ -65,6 +65,11 @@ export class TimeStamp {
}
}
/**
* returns a boolean for wether a timestamp is younger
* @param TimeStampArg
* @param tresholdTimeArg
*/
public isYoungerThanOtherTimeStamp(TimeStampArg: TimeStamp, tresholdTimeArg: number = 0) {
if (this.milliSeconds > TimeStampArg.milliSeconds + tresholdTimeArg) {
return true;

View File

@ -5,5 +5,6 @@ export { smartpromise };
// third parties
import * as luxon from 'luxon';
import * as cron from 'cron';
export { luxon };
export { luxon, cron };