Page MenuHomePhabricator

The formatPropertyValues needs an option to format data from date-time, angle or geographic coordinates
Open, MediumPublic

Description

For text values, a simple formatPropertyValues is enough. But for a scribunto module one could needs only the month or the year. "28 december 2014" is not so easy. This could be easier with a fixed date-time format like -YYYYMMDD HH:MM:SS,nnn (minus or plus is for years before or from 1, and 0 could means "not defined in this format"). Then an option to choose the type of format could be usefull. Another case is angle or geographic coordinates in radian / turn / grade / degree.

Event Timeline

Rical raised the priority of this task from to Needs Triage.
Rical updated the task description. (Show Details)
Rical subscribed.
JohnLewis subscribed.

For date-time, format like in LibreOffice could be usefull : "yyyy-mm-dd" or "mmm/yy"
Also "ISO8601" for date-time if it is not the default format.
Or that could become a function from ISO8601 in Lua modules?

Michael subscribed.

T323776 would seem to be another specific example for this.