Okay, I admit, I am an AM/PM’er… perhaps I’m in the minority, but I just can’t help it, I love the O’Clock!
Okay, I admit, I am an AM/PM’er… perhaps I’m in the minority, but I just can’t help it, I love the O’Clock!
If it’s easy, could we get a couple more formatting options for AM/PM? Like lower case (am/pm) and single letter (a/p) formats? That would be so cool!
And Thank you for a great app!! 😀
12h-ly Yours,
-Kevin
]]>« Hi, I’m writing a small script to add an item to desktop (Previous Post)
(Next Post) Quick and Simple Unlocker for Lightning Launcher. »
< ![CDATA[
A dynamic text uses java formatting, and you can’t use am/pm or a/p.
But who want dynamic text when you have bindings! (They are easier, I know, but bindings are more powerful)
Try this: add a text item and set it’s label binding property to
$ll_hour12+”:”+$ll_minute+”:”+$ll_second+” “+$ll_am_pm
This will put a “a. m.” or “p. m.” (On my device)
You don’t want that? Ok, try again.
What about (modify to your needs)
$ll_hour12+”:”+$ll_minute+”:”+$ll_second+” “+($ll_hour24>=12&&$ll_hour24<24?"a beautiful pm marker":"a nice am marker")
Wait a moment…
Pierre Hébert: there is a bug: The $ll_hour24 shows 24 instead of 00
]]>
< ![CDATA[
TrianguloY very good 😊
]]>
< ![CDATA[
TrianguloY good catch. This is because the internal formater used is kk (1-24) not the usual HH (0-23). I don’t remember why but honestly I see no reason now to prefer 1-24 over 0-23 so I’ll change this for the next version. In the meantime adding %24 should work.
]]>
< ![CDATA[
TrianguloY, thank you very much! I haven’t responded mostly because you got me excited and I ended up making my little p’s and a’s rotate as the seconds tick by as well.. I’m now trying for a slowly oscillating p/a vertically, while at the same time twirling it in place if the user gives a slide gesture… Oh, what fun! \(^_^)/
]]>