Server IP : 66.29.132.122 / Your IP : 18.188.66.250 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/ruby18/share/ri/1.8/system/Time/ |
Upload File : |
--- !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