You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
401 B

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 const utc = value => new UTCDate(+new Date(value));