User:Alexis Jazz/Factotum/Mumbo jumbo/Timestamp support

Language codes from m:List of Wikipedias.

This page is for Factotum's support status of detection and conversion of legacy timestamps, e.g. 11:38, 5 August 2022 (UTC).

As of August 2022, timestamps from all Wikipedia language variants are supported. If a sister project (like Wikibooks, Wiktionary, etc) uses a different timestamp format an exception may be required. If you notice this anywhere, please report it on this talk page.

Detectable means Factotum can see a timestamp is a timestamp and offer reply/thank/etc buttons.

Convertable means Factotum can convert the timestamp to a machine-readable format. This is required to detect new comments in subscribed threads, highlight timestamps of comments that were posted since you lasted visited the page and to show signature dates in a different timezone or with relative time.

Ugly testing code
You can test both by running this code from the browser console on a wiki if you have Factotum loaded:

Automatically posting the result:

Fixing support
To add/patch support:
 * If the wiki uses genitive or abbreviated month names, check FTT.getMonthNames and add the language code (NOT the subdomain code which is sometimes different) to the correct array
 * If the timestamp includes silly filler, you can possibly add it to FTT.cleanTimestampReplaceChar
 * If the months have crap appended to them, use FTT.appendToMonthNames (fiwiki for example appends "ta" to each month)
 * If neither the months from wgMonthNames, the genitive variant or the abbreviated variant matches the month format used in timestamps, use FTT.specialMonthNames
 * If more flexibility is needed, copy the function for qqq within FTT.signDateCleanerFunc and create a function that fixes the timestamp up. For example, for the Thai solar calendar 543 years are subtracted here. Fixing up means the result has to match FTT.signDateRegExp. This is also used for some wikis with overlapping month names, to change the replacement order. I'm looking at you jbowiki. January is "ly. pa", October is "ly. pa no", November is "ly. pa pa" and December is "ly. pa re". For a constructed language that's immensely stupid. If you see "ly. pa" anywhere, you could never know if it's January or an instance of Oct/Nov/Dec that got cut off.