Page 1 of 1

Confused by the am/pm format attibute

Posted: Mon 14 Nov 2011 8:20 am
by RSchahrer
OK, here is what my tweets look like at the moment:

WX @ 19:00 Temp:63.3°F, Wind: NW @ 2.0 mph, Baro:29.898" & Rising, Hum:67%, Rain:0.06", Hi:71.4°F @ 14:42MST, Lo:56.9°F @ 05:26MST

And I am trying to get them to read like this:

WX @ 7:00PM Temp:63.3°, Wind: NW @ 2.0 mph, Baro:29.898" & Rising, Hum:67%, Rain:0.06", Hi:71.4° @ 2:42PM MST, Lo:56.9° @ 05:26AM MST

My current twitter.txt

WX @ <#hour>:<#minute>MST: Temp:<#temp>°F, Wind: <#currentwdir> @ <#wspeed> mph, Baro:<#altimeterpressure>" & <#presstrendenglish>, Hum:<#hum>%, Rain:<#rfall>", Hi:<#tempTH>°F @ <#TtempTH>MST, Lo:<#tempTL>°F @ <#TtempTL>MST


It appears that the "format=am/pm" attribute can be used somewhere, but I can't quite figure it out.

Any help would be appreciated.

Roy - N7QYK
Twitter: @KOA789
Cumulus RealTime: http://members.cox.net/n7qyk/weather/Cu ... ltime.html
WUnderground: http://www.wunderground.com/swf/Rapid_F ... KAZCHAND32

Re: Confused by the am/pm format attibute

Posted: Mon 14 Nov 2011 9:31 am
by steve
Instead of

Code: Select all

<#hour>:<#minute>
use

Code: Select all

<#time format=h:nnAM/PM>
and do the same for the other time tags that you're using, e.g:

Code: Select all

<#TtempTH format=h:nnAM/PM>