How date/time precision works
mainThe library automatically switches to a larger unit as soon as the threshold is met, and includes some rounding logic:
59.seconds$\rightarrow$ "59 seconds";60.seconds$\rightarrow$ "1 minute"6.days$\rightarrow$ "6 days";7.days$\rightarrow$ "1 week"29.days$\rightarrow$ "29 days";30.days$\rightarrow$ "1 month"- Rounding:
8.daysand10.daysboth result in "1 week", but11.daysbecomes "2 weeks".