lib/fugit/misc.rb in fugit-0.9.6 vs lib/fugit/misc.rb in fugit-1.0.0

- old
+ new

@@ -17,12 +17,12 @@ def self.time_to_s(t) isostamp(true, true, false, t) end - def self.time_to_plain_s(t=Time.now) + def self.time_to_plain_s(t=Time.now, z=true) - t.strftime('%Y-%m-%d %H:%M:%S') + (t.utc? ? ' Z' : '') + t.strftime('%Y-%m-%d %H:%M:%S') + (z && t.utc? ? ' Z' : '') end def self.time_to_zone_s(t=Time.now) t.strftime('%Y-%m-%d %H:%M:%S %Z %z')