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
|
|
|
|
*/
|
|
|
|
isOlderThan(TimeStampArg: TimeStamp): boolean;
|
|
|
|
isYoungerThan(TimeStampArg: TimeStamp): boolean;
|
|
|
|
}
|