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.
 
 
 
 
 

14 lines
455 B

"use strict";
exports.utc = void 0;
var _index = require("../date/index.cjs");
/**
* 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
*/
const utc = value => new _index.UTCDate(+new Date(value));
exports.utc = utc;