instance method
Date#rfc3339
() -> ::String
rfc3339 → string
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_rfc3339(VALUE self)
{
return strftimev("%Y-%m-%dT%H:%M:%S%:z", self, set_tmx);
}
Equivalent to strftime with argument '%FT%T%:z'; see Formats for Dates and Times:
Example
Date.new(2001, 2, 3).rfc3339 # => "2001-02-03T00:00:00+00:00"