MCPcopy
hub / github.com/iamkun/dayjs / makeFormatParts

Function makeFormatParts

src/plugin/timezone/index.js:39–43  ·  view source on GitHub ↗
(timestamp, timezone, options = {})

Source from the content-addressed store, hash-verified

37 let defaultTimezone
38
39 const makeFormatParts = (timestamp, timezone, options = {}) => {
40 const date = new Date(timestamp)
41 const dtf = getDateTimeFormat(timezone, options)
42 return dtf.formatToParts(date)
43 }
44
45 const tzOffset = (timestamp, timezone) => {
46 const formatResult = makeFormatParts(timestamp, timezone)

Callers 2

tzOffsetFunction · 0.85
index.jsFile · 0.85

Calls 1

getDateTimeFormatFunction · 0.85

Tested by

no test coverage detected