2017-08-16 12:29:12 +00:00
|
|
|
/**
|
|
|
|
* TimeStamp
|
|
|
|
* smart timestamp
|
|
|
|
*/
|
|
|
|
export declare class TimeStamp {
|
|
|
|
/**
|
|
|
|
* The standard JavaScript Date
|
|
|
|
*/
|
|
|
|
date: Date;
|
|
|
|
/**
|
2017-08-16 13:34:49 +00:00
|
|
|
* The time as linux time (milliseconds, not seconds though)
|
2017-08-16 12:29:12 +00:00
|
|
|
* good for comparison
|
|
|
|
*/
|
2017-08-16 13:34:49 +00:00
|
|
|
milliSeconds: number;
|
|
|
|
/**
|
|
|
|
* The standard epoch time in seconds
|
|
|
|
*/
|
|
|
|
epochtime: number;
|
|
|
|
/**
|
|
|
|
* if derived from another TimeStamp points out the change in milliseconds
|
|
|
|
*/
|
|
|
|
change: number;
|
|
|
|
constructor(creatorArg?: number);
|
|
|
|
/**
|
|
|
|
* returns new TimeStamp from milliseconds
|
|
|
|
*/
|
|
|
|
static fromMilliSeconds(milliSecondsArg: any): TimeStamp;
|
|
|
|
/**
|
|
|
|
* returns new TimeStamp for now with change set
|
|
|
|
* @param timeStampArg
|
|
|
|
*/
|
|
|
|
static fromTimeStamp(timeStampArg: TimeStamp): TimeStamp;
|
2017-08-16 12:29:12 +00:00
|
|
|
/**
|
|
|
|
* Is the current instance older than the argument
|
|
|
|
* @param TimeStampArg
|
|
|
|
*/
|
2017-08-19 15:59:54 +00:00
|
|
|
isOlderThan(TimeStampArg: TimeStamp, tresholdTimeArg?: number): boolean;
|
|
|
|
isYoungerThan(TimeStampArg: TimeStamp, tresholdTimeArg?: number): boolean;
|
2017-08-16 12:29:12 +00:00
|
|
|
}
|