How can I use strftime to display a time in the format "20:45 EDT"
I looked at
http://tzinfo.rubyforge.org/doc/classes/TZInfo/Timezone.html#M000060
and think that "%H:%M %Z" would do it, but no joy.
now = DateTime.now.new_offset(0)
ltime = tz.utc_to_local(now)
otime = ltime.strftime("%H:%M %Z")
returns "14:07 +00:00"
Can anyone provide an example for me?
Tom
_______________________________________________
TZInfo-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/tzinfo-users