Hi,

> > A simple option in the config should allow the choice between 12H and 24H
> > format.
> 
> Maybe sth. like (config.TV_TIMEFORMAT == '%H:%M') ?
> I know - it's not nice but at least solves most cases.. Or just 
> (config.TV_TIMEFORMAT.find("%H") >= 0), that should be quite safe already..

well I was thinking of a simple TIME_24_HOUR = 1 to show it's 24 hour or
0 for 12 hour. That name isn't final just something like that. Then a
function or two that would take that option and a mod (for favorites) or
a unix time (for manual recording) and return the time as a string in
12h or 24h format, or return it as some html drop down select boxes.
Could also do another function that could take the hour, min and am/pm
status and return the mod or, given a date, unix time

I haven't really thought this through fully, I've been playing with the
padding recently and only thought about this on the train home from
work. I'm waiting to hear if my original patch for making the start time
for favorites more accurate has been accepted.

Cheers,

Alex

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to