Anki/ts/lib
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
..
components Center align rows in FSRS simulator (#3882) 2025-03-26 17:21:21 +10:00
domlib Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
generated alertOnError should default to true 2024-04-17 20:13:37 +10:00
sass Update dprint (#3376) 2024-08-22 18:24:56 +07:00
sveltelib Fix editor width changing as tag completions shown (#3574) 2024-11-18 01:11:21 +10:00
tag-editor add cut handler in TagInput (#3791) 2025-02-06 14:26:44 +07:00
tslib Improve natural unit conversion for a time b/w 360 to 365 days (#3901) 2025-04-13 14:26:34 +10:00