date-fns-tz
Version:
Time zone support for date-fns v3 with the Intl API
9 lines (8 loc) • 496 B
TypeScript
/**
* Use instead of `new Date(Date.UTC(...))` to support years below 100 which doesn't work
* otherwise due to the nature of the
* [`Date` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years.
*
* For `Date.UTC(...)`, use `newDateUTC(...).getTime()`.
*/
export declare function newDateUTC(fullYear: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number): Date;