Skip to content

buddhist-era

Imported from yugajs/extension/buddhist-era.

const buddhistEra: yuga.Extension<void>;

Day.js’s buddhistEra tokens, the year of the Buddhist Era (the year plus 543):

  • BBBB the year, at least 4 digits (2567).
  • BB the last 2 digits of the year (67).

Day.js rewrites the template before formatting, here they are format tokens (the same output, and brackets still escape them).