If you agree, I would give it a try and create a pimatic-datetime plugin that provides the following variables:
- localized time e.g. 07:33
- localized date e.g. 22.03.2018
- localized datetime e.g. Do 22. Mär 07:33:47 CET 2018
- formated datetime by given format (device attribute) e.g. YYYYMMdd HH: mm:ss --> 20180322 07:33:47
- day of week (localized) e.g. 4
- day of month (localized) e.g. 22
- unix timestamp
These should be the optional device attributes:
- locale or default system locale
- datetime format
I think updating the values every two or five seconds should be enough. Because of that, providing the current seconds doesn’t make sense.