Class/Module Index [+]

Quicksearch

Nanoc::Extra::TimeExtensions

Public Instance Methods

to_iso8601_date() click to toggle source

@return [String] The time in an ISO-8601 date format.

# File lib/nanoc/extra/core_ext/time.rb, line 5
def to_iso8601_date
  self.strftime("%Y-%m-%d")
end
to_iso8601_time() click to toggle source

@return [String] The time in an ISO-8601 time format.

# File lib/nanoc/extra/core_ext/time.rb, line 10
def to_iso8601_time
  self.getutc.strftime("%Y-%m-%dT%H:%M:%SZ")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.