Skip to content

persian — Optimization

Use integer amounts and specify IRR or IRT. parseMoney rejects decimal strings and unsafe integers.

Supported Jalali years run from 1 to 3176. Conversion functions can throw a RangeError outside this range.

When a display-unit conversion is not divisible, formatMoney keeps the source unit unless a rounding mode is supplied. convertMoney throws without rounding.

Timezone conversion in ./date and ./relative requires host Intl timezone data. The package supports Node.js, Bun, Edge, and browsers.

Package guidance · Implementation. · Matching skill.