UNPKG

504 BTypeScriptView Raw
1/**
2 * @name fromUnixTime
3 * @category Timestamp Helpers
4 * @summary Create a date from a Unix timestamp.
5 *
6 * @description
7 * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded.
8 *
9 * @param unixTime - The given Unix timestamp (in seconds)
10 *
11 * @returns The date
12 *
13 * @example
14 * // Create the date 29 February 2012 11:45:05:
15 * const result = fromUnixTime(1330515905)
16 * //=> Wed Feb 29 2012 11:45:05
17 */
18export declare function fromUnixTime(unixTime: number): Date;