fix(core): update
This commit is contained in:
@ -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';
|
||||
|
3
ts/smarttime.classes.cronmanager.ts
Normal file
3
ts/smarttime.classes.cronmanager.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as plugins from './smarttime.plugins';
|
||||
|
||||
export class CronManager {}
|
@ -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;
|
||||
|
@ -5,5 +5,6 @@ export { smartpromise };
|
||||
|
||||
// third parties
|
||||
import * as luxon from 'luxon';
|
||||
import * as cron from 'cron';
|
||||
|
||||
export { luxon };
|
||||
export { luxon, cron };
|
||||
|
Reference in New Issue
Block a user