date-and-time icon indicating copy to clipboard operation
date-and-time copied to clipboard

How to format a named offset? (ex: EST)

Open alex996 opened this issue 1 year ago • 1 comments

Many libraries include a formatting token for named offsets. Ex: in dayjs, z for EST, zzz for Eastern Standard Time, etc. It looks like Intl.DateTimeFormat includes timeZoneName which could be used for this.

Is there complexity to this feature? Could this be offered with a plugin, if not part of the core? Thank you.

alex996 avatar Jun 10 '24 20:06 alex996

Thank you for your input. I will consider it.

knowledgecode avatar Jun 11 '24 12:06 knowledgecode

Added zz (time zone name) and z (time zone name abbreviation) tokens to the timezone plugin. Try it when you have time.

knowledgecode avatar Jul 07 '24 04:07 knowledgecode