Class: Time
Overview
Time extensions
Class Method Summary collapse
-
.pack ⇒ String
Shorthand for Time.now.pack.
Instance Method Summary collapse
-
#pack ⇒ String
The time is converted to UTC.
Class Method Details
.pack ⇒ String
Shorthand for Time.now.pack
28 29 30 |
# File 'lib/sixarm_ruby_ramp/time.rb', line 28 def self.pack now.pack end |
Instance Method Details
#pack ⇒ String
The time is converted to UTC.
15 16 17 |
# File 'lib/sixarm_ruby_ramp/time.rb', line 15 def pack getutc.strftime('%Y%m%d%H%M%S') end |