Any documentation available for Web interface settings -> Custom Date Format?
Added by James Roberts over 5 years ago
Specifically I would like to format EPG and DVR listings to use 12h format with AM/PM. The Custom Date Format mask obviously does not use standard strftime style formatting I'm assuming because it is a MASK. Can anyone point me in the direction of any documentation on what formatting options are available? The tooltip is not very helpful and I cannot find anything other than that one example in the wiki.
Replies (1)
RE: Any documentation available for Web interface settings -> Custom Date Format? - Added by Laurent VRS about 3 years ago
Hi James,
I know it's an old thread but I was looking for the same info and managed to understand how it works from the source code in tvheadend.js (function tvheadend.toCustomDate), so the available options are :
M = month. repeat the letter for different variants : %MM (2 digits) , %MMM (month name short), %MMMM (month name long)
m = minutes. use %mm for 2 digits
s = seconds. use %ss for 2 digits
S = millisecond
y or Y = year
d = day. repeat the letter for different variants : %dd (2 digits) , %ddd (weekday short), %dddd (weekday long)
h = hours. use %hh for 2 digits
q = quarter
Cheers