exportinterface FromUnixTimeOptions<DateType extends Date = Date>
6
extends ContextOptions<DateType> {}
7
/**
8
* @name fromUnixTime
9
* @category Timestamp Helpers
10
* @summary Create a date from a Unix timestamp.
11
*
12
* @description
13
* Create a date from a Unix timestamp (in seconds). Decimal values will be discarded.
14
*
15
* @param unixTime - The given Unix timestamp (in seconds)
16
* @param options - An object with options. Allows to pass a context.
17
*
18
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).