67place
WatchMaker Feature Requests All the ideas and discussions
23 votes Vote

lua date function

lua spec has os.date if this was supported we could do os.date("%a", os.time-(24*60*60)) to return the string Wed (which is yesterday when today is Thursday).

artesea, 08.01.2015, 15:18
Idea status: under consideration

Comments

RobbH, 06.06.2015, 18:09
This would also give access to current UTC, something that is often requested.
Paul, 10.03.2016, 07:26
In addition, it would give access to the ISO week number via os.date("%V"). The week number currently available is not useful for anyone outside the US.
Karl , 22.01.2022, 22:17
We are still waiting for this function.
I have a watch face which displays UTC date and requires about 20 lines of code for each timezone. This is not practical which means I can't share the face with others.

Leave a comment