dayjs-tz-format
Version:
A Day.js plugin that combines timezone conversion and formatting
16 lines (14 loc) • 361 B
JavaScript
var index = (function (o, c, d) {
var proto = c.prototype;
proto.tzFormat = function (format, timezone) {
if (!d.utc) {
throw new Error('UTC plugin is required');
}
if (!d.tz) {
throw new Error('Timezone plugin is required');
}
var tz = timezone;
return this.tz(tz).format(format);
};
});
export { index as default };