Method: Date#strftime
- Defined in:
- date_core.c
#strftime(format = '%F') ⇒ String
Returns a string representation of the date in self, formatted according the given format:
Date.new(2001, 2, 3).strftime # => "2001-02-03"
For other formats, see Formats for Dates and Times.
7244 7245 7246 7247 7248 7249 |
# File 'date_core.c', line 7244 static VALUE d_lite_strftime(int argc, VALUE *argv, VALUE self) { return date_strftime_internal(argc, argv, self, "%Y-%m-%d", set_tmx); } |