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

Instance Method Details

#__nanoc_to_iso8601_dateString

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.

Returns:

  • (String)

    The time in an ISO-8601 date format.



6
7
8
# File 'lib/nanoc/extra/core_ext/time.rb', line 6

def __nanoc_to_iso8601_date
  getutc.strftime('%Y-%m-%d')
end

#__nanoc_to_iso8601_timeString

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.

Returns:

  • (String)

    The time in an ISO-8601 time format.



11
12
13
# File 'lib/nanoc/extra/core_ext/time.rb', line 11

def __nanoc_to_iso8601_time
  getutc.strftime('%Y-%m-%dT%H:%M:%SZ')
end