Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/sixarm_ruby_date_stamp.rb
Class Method Summary collapse
-
.stamp ⇒ String
Shorthand for Date.today.stamp.
Instance Method Summary collapse
-
#stamp ⇒ String
This standard format is specified in IETF RFC 3339 and ISO 8601.
Class Method Details
.stamp ⇒ String
Shorthand for Date.today.stamp
34 35 36 |
# File 'lib/sixarm_ruby_date_stamp.rb', line 34 def self.stamp today.stamp end |
Instance Method Details
#stamp ⇒ String
This standard format is specified in IETF RFC 3339 and ISO 8601.
21 22 23 |
# File 'lib/sixarm_ruby_date_stamp.rb', line 21 def stamp strftime('%Y-%m-%d') end |