Convert a Unix timestamp (seconds) to a JS Date.
Date
Stripe expresses times as Unix epoch seconds; this saves consumers from the repetitive new Date(value * 1000).
new Date(value * 1000)
Unix time in seconds (e.g. subscription.current_period_end)
subscription.current_period_end
A Date, or undefined if the input is null/undefined
undefined
fromUnixTime(1700000000); // DatefromUnixTime(null); // undefined Copy
fromUnixTime(1700000000); // DatefromUnixTime(null); // undefined
Convert a Unix timestamp (seconds) to a JS
Date.Stripe expresses times as Unix epoch seconds; this saves consumers from the repetitive
new Date(value * 1000).