https://bugzilla.wikimedia.org/show_bug.cgi?id=64593
Bug ID: 64593
Summary: Allow "speaking" values to specify the precision of a
time value.
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
Currently, when calling the API, the precision ofa time value has to be
specified using an obscure number, e.g. 8 for a decade or 0 for a gigayear. We
should accept obvious string values for these, and map them to the internal
numeric representation during deserialization of the JSON structure supplied to
the API call. We'll want at least the following to work:
"gigayear" => 0,
"megayear" => 3,
"kiloyear => 6,
"century" => 7,
"decade" => 8,
"year" => 9,
"month" => 10,
"day" => 11,
"hour" => 12,
"minute" => 13,
"second" => 14,
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l