dayjs-tz-format
Version:
A Day.js plugin that combines timezone conversion and formatting
2 lines (1 loc) • 446 B
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjsTzFormat=t()}(this,(function(){"use strict";return function(e,t,o){t.prototype.tzFormat=function(e,t){if(!o.utc)throw new Error("UTC plugin is required");if(!o.tz)throw new Error("Timezone plugin is required");var i=t;return this.tz(i).format(e)}}}));