Anki/ts/lib/tslib
user1823 e546c6d11f
Improve natural unit conversion for a time b/w 360 to 365 days (#3901)
* Improve natural unit conversion for a time b/w 360 to 365 days

Previously, 363 days would be converted to 12.1 months, which is quite confusing because
- a user would think that if the value is more than 12 months, why it isn't displayed in years
- the value is actually less than a year, which is counterintuitive as 12.1 m suggests a value more than a year.

* precise

* Update time.ts to match timespan.rs

* Add another test

* Use average duration of a month instead

* Update time.ts

* Update test_schedv3.py

* Update time.test.ts
2025-04-13 14:26:34 +10:00
..
i18n
bridgecommand.ts
cards.ts
children-access.ts
context-keys.ts
cross-browser.ts
dom.ts
events.ts
functional.ts
globals.ts
help-page.ts
helpers.ts
image-import.d.ts
keys.ts
nightmode.ts
node.ts
parsing.ts
platform.ts
progress.ts
promise.ts
runtime-require.ts
shadow-dom.d.ts
shortcuts.ts
styling.ts
time.test.ts Improve natural unit conversion for a time b/w 360 to 365 days (#3901) 2025-04-13 14:26:34 +10:00
time.ts Improve natural unit conversion for a time b/w 360 to 365 days (#3901) 2025-04-13 14:26:34 +10:00
typing.ts
ui.ts
uuid.ts
wrap.ts