PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Time
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Formats <em>time</em> according to the directives in the given format string. Any text not listed as a directive will be passed through to the output string. - !ruby/struct:SM::Flow::P body: "Format meaning:" - !ruby/struct:SM::Flow::VERB body: " %a - The abbreviated weekday name (``Sun'')\n %A - The full weekday name (``Sunday'')\n %b - The abbreviated month name (``Jan'')\n %B - The full month name (``January'')\n %c - The preferred local date and time representation\n %d - Day of the month (01..31)\n %H - Hour of the day, 24-hour clock (00..23)\n %I - Hour of the day, 12-hour clock (01..12)\n %j - Day of the year (001..366)\n %m - Month of the year (01..12)\n %M - Minute of the hour (00..59)\n %p - Meridian indicator (``AM'' or ``PM'')\n %S - Second of the minute (00..60)\n %U - Week number of the current year,\n starting with the first Sunday as the first\n day of the first week (00..53)\n %W - Week number of the current year,\n starting with the first Monday as the first\n day of the first week (00..53)\n %w - Day of the week (Sunday is 0, 0..6)\n %x - Preferred representation for the date alone, no time\n %X - Preferred representation for the time alone, no date\n %y - Year without a century (00..99)\n %Y - Year with century\n %Z - Time zone name\n %% - Literal ``%'' character\n\n t = Time.now\n t.strftime("Printed on %m/%d/%Y") #=> "Printed on 04/09/2003"\n t.strftime("at %I:%M%p") #=> "at 08:56AM"\n" full_name: Time#strftime is_singleton: false name: strftime params: | time.strftime( string ) => string visibility: public
[-] w3cdtf-i.yaml
[edit]
[-] hour-i.yaml
[edit]
[-] %3c%3d%3e-i.yaml
[edit]
[-] make_time-c.yaml
[edit]
[-] _dump-i.yaml
[edit]
[-] zone_utc%3f-c.yaml
[edit]
[-] _load-c.yaml
[edit]
[-] now-c.yaml
[edit]
[-] at-c.yaml
[edit]
[-] parse-c.yaml
[edit]
[-] min-i.yaml
[edit]
[-] rfc2822-c.yaml
[edit]
[-] iso8601-i.yaml
[edit]
[-] httpdate-i.yaml
[edit]
[-] to_yaml-i.yaml
[edit]
[-] hash-i.yaml
[edit]
[-] apply_offset-c.yaml
[edit]
[-] xmlschema-i.yaml
[edit]
[-] tv_usec-i.yaml
[edit]
[-] gmt_offset-i.yaml
[edit]
[-] %2d-i.yaml
[edit]
[-] gmt%3f-i.yaml
[edit]
[-] tv_sec-i.yaml
[edit]
[-] usec-i.yaml
[edit]
[-] ctime-i.yaml
[edit]
[-] yday-i.yaml
[edit]
[-] rfc822-i.yaml
[edit]
[-] getgm-i.yaml
[edit]
[-] dst%3f-i.yaml
[edit]
[-] w3cdtf-c.yaml
[edit]
[-] gm-c.yaml
[edit]
[-] strftime-i.yaml
[edit]
[-] to_f-i.yaml
[edit]
[-] cdesc-Time.yaml
[edit]
[-] %2b-i.yaml
[edit]
[-] marshal_load-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] marshal_dump-i.yaml
[edit]
[-] sec-i.yaml
[edit]
[-] utc-i.yaml
[edit]
[-] succ-i.yaml
[edit]
[-] mktime-c.yaml
[edit]
[-] mon-i.yaml
[edit]
[-] times-c.yaml
[edit]
[-] xmlschema-c.yaml
[edit]
[-] gmtime-i.yaml
[edit]
[-] wday-i.yaml
[edit]
[-] to_a-i.yaml
[edit]
[-] mday-i.yaml
[edit]
[-] getutc-i.yaml
[edit]
[-] yaml_new-c.yaml
[edit]
[-] eql%3f-i.yaml
[edit]
[-] day-i.yaml
[edit]
[+]
..
[-] year-i.yaml
[edit]
[-] to_i-i.yaml
[edit]
[-] rfc2822-i.yaml
[edit]
[-] localtime-i.yaml
[edit]
[-] utc%3f-i.yaml
[edit]
[-] gmtoff-i.yaml
[edit]
[-] to_datetime-i.yaml
[edit]
[-] getlocal-i.yaml
[edit]
[-] asctime-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] httpdate-c.yaml
[edit]
[-] month-i.yaml
[edit]
[-] local-c.yaml
[edit]
[-] utc_offset-i.yaml
[edit]
[-] zone-i.yaml
[edit]
[-] to_s-i.yaml
[edit]
[-] to_date-i.yaml
[edit]
[-] zone_offset-c.yaml
[edit]
[-] isdst-i.yaml
[edit]
[-] utc-c.yaml
[edit]
[-] month_days-c.yaml
[edit]