Class: DateTime
Instance Method Summary collapse
-
#pretty_print(q) ⇒ String
Pretty-prints the DateTime
strftime
to the given queue in the format dateT
hrh
mmm
sss
, e.g.
Instance Method Details
#pretty_print(q) ⇒ String
Pretty-prints the DateTime strftime
to the given queue in the format dateT
hrh
mmm
sss
, e.g. 2010-10-10T04h10m30
.
196 197 198 |
# File 'lib/jinx/helpers/pretty_print.rb', line 196 def pretty_print(q) q.text(strftime.sub(/T(\d{2}):(\d{2}):(\d{2})-\d{2}:\d{2}/, 'T\1h\2m\3s')) end |