UNPKG

515 BTypeScriptView Raw
1/**
2 * @hidden
3 */
4export declare class TimeUtils {
5 /**
6 * Returns time in seconds for expiration based on string value passed in.
7 *
8 * @param expiresIn
9 */
10 static parseExpiresIn(expiresIn: string): number;
11 /**
12 * Return the current time in Unix time (seconds). Date.getTime() returns in milliseconds.
13 */
14 static now(): number;
15 /**
16 * Returns the amount of time in milliseconds since the page loaded.
17 */
18 static relativeNowMs(): number;
19}