Class: Time

Inherits:
Object
  • 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



123
124
125
# File 'lib/nice/hash/add_to_ruby.rb', line 123

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