Module: Nanoc::Extra::TimeExtensions Private
- Included in:
- Time
- Defined in:
- lib/nanoc/extra/core_ext/time.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#__nanoc_to_iso8601_date ⇒ String
private
The time in an ISO-8601 date format.
-
#__nanoc_to_iso8601_time ⇒ String
private
The time in an ISO-8601 time format.
Instance Method Details
#__nanoc_to_iso8601_date ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The time in an ISO-8601 date format.
4 5 6 |
# File 'lib/nanoc/extra/core_ext/time.rb', line 4 def __nanoc_to_iso8601_date strftime('%Y-%m-%d') end |
#__nanoc_to_iso8601_time ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The time in an ISO-8601 time format.
9 10 11 |
# File 'lib/nanoc/extra/core_ext/time.rb', line 9 def __nanoc_to_iso8601_time getutc.strftime('%Y-%m-%dT%H:%M:%SZ') end |