Class: Time

Inherits:
Object show all
Defined in:
lib/nice/hash/add_to_ruby.rb

Instance Method Summary collapse

Instance Method Details

#stampObject

It will return in the format: '%Y-%m-%dT%H:%M:%S.%LZ' Example: puts Time.now.stamp



141
142
143
# File 'lib/nice/hash/add_to_ruby.rb', line 141

def stamp
  strftime("%Y-%m-%dT%H:%M:%S.%LZ")
end