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 Tweak how the True Retention stats table displays numbers (#3677) 2025-01-04 23:13:32 +03:00
bridgecommand.ts Restore $deckOptions (#3265) 2024-06-28 19:38:18 +07:00
cards.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
children-access.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
context-keys.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
cross-browser.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
dom.ts Added name to contributors list as well as addressed issue #3343. Ran ninja check and the build compiled successfully. (#3345) 2024-08-07 16:15:50 +07:00
events.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
functional.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
globals.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
help-page.ts Update Deck Options strings to clarify Timers (#3792) 2025-02-06 15:17:30 +07:00
helpers.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
image-import.d.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
keys.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
nightmode.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
node.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
parsing.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
platform.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
progress.ts Fix FSRS progress update issues (#3420) 2024-09-20 21:18:02 +10:00
promise.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
runtime-require.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
shadow-dom.d.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
shortcuts.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
styling.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
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 Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ui.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
uuid.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
wrap.ts Revert "Revert "Revert "Preserve HTML formatting inside clozes (#3038)""" 2024-05-17 11:51:09 +07:00