Class: Time
Class Method Summary collapse
-
.stamp ⇒ Object
Return current time in UTC as a timestamp string “YYYYMMDDHHMMSS”.
Class Method Details
.stamp ⇒ Object
Return current time in UTC as a timestamp string “YYYYMMDDHHMMSS”
5 6 7 |
# File 'lib/webget_ramp/time.rb', line 5 def self.stamp now.utc.strftime('%Y%m%d%H%M%S') end |