Skip to content

advanced-format

Imported from yugajs/extension/advanced-format.

const advancedFormat: yuga.Extension<void>;

Day.js’s advancedFormat tokens that the core doesn’t format (Q and Do are in the core, w, ww, W and WW in yugajs/extension/weeks):

  • X Unix seconds, x Unix milliseconds.
  • k kk the hour from 1 to 24.
  • wo the ordinal week of the locale.
  • gggg the year of the locale’s week, GGGG the year of the ISO week.
  • z the short time zone name, zzz the long one (always in en-US).