@date-fns/utc
Version:
UTC date utils
11 lines (10 loc) • 412 B
TypeScript
import { UTCDate } from "../date/index.js";
/**
* The function creates a new `UTCDate` instance from the provided value. Use it
* to provide the context for the date-fns functions, via the `in` option.
*
* @param value - Date value, timestamp, string or `Date` instance
*
* @returns UTCDate instance created from the provided value
*/
export declare const utc: (value: Date | number | string) => UTCDate;