How duration and period support works in pyhocon
masterPyhocon implements HOCON duration/period support with the following deviations from the standard spec:
- Nanoseconds: Supported by converting them to microseconds (divided by 1000 and rounded to an integer).
- 'm' suffix: Only applies to minutes. In the standard spec,
mcan also mean months, but this is avoided here to prevent syntax conflicts. - Months and Years: These are only available if the
dateutilspackage is installed (which usesrelativedeltainstead oftimedelta).