Module: Jylis::Helpers::Timestamp
- Defined in:
- lib/jylis-rb/helpers/timestamp.rb
Instance Method Summary collapse
-
#time ⇒ Time
The timestamp as a Time object.
-
#timestamp_iso8601 ⇒ String
The timestamp as an ISO8601 formatted string.
Instance Method Details
#time ⇒ Time
Returns the timestamp as a Time object
5 6 7 |
# File 'lib/jylis-rb/helpers/timestamp.rb', line 5 def time Time.at() end |
#timestamp_iso8601 ⇒ String
Returns the timestamp as an ISO8601 formatted string
10 11 12 |
# File 'lib/jylis-rb/helpers/timestamp.rb', line 10 def time.utc.iso8601 end |