Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /opt/alt/ruby18/share/ri/1.8/system/DateTime/ |
Upload File : |
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: _strptime - !ruby/object:RI::MethodSummary name: civil - !ruby/object:RI::MethodSummary name: commercial - !ruby/object:RI::MethodSummary name: jd - !ruby/object:RI::MethodSummary name: ordinal - !ruby/object:RI::MethodSummary name: parse - !ruby/object:RI::MethodSummary name: strptime comment: - !ruby/struct:SM::Flow::P body: Class representing a date and time. - !ruby/struct:SM::Flow::P body: See the documentation to the file date.rb for an overview. - !ruby/struct:SM::Flow::P body: DateTime objects are immutable once created. - !ruby/struct:SM::Flow::H level: 2 text: Other methods. - !ruby/struct:SM::Flow::P body: The following methods are defined in Date, but declared private there. They are made public in DateTime. They are documented here. - !ruby/struct:SM::Flow::H level: 3 text: hour() - !ruby/struct:SM::Flow::P body: Get the hour-of-the-day of the time. This is given using the 24-hour clock, counting from midnight. The first hour after midnight is hour 0; the last hour of the day is hour 23. - !ruby/struct:SM::Flow::H level: 3 text: min() - !ruby/struct:SM::Flow::P body: Get the minute-of-the-hour of the time. - !ruby/struct:SM::Flow::H level: 3 text: sec() - !ruby/struct:SM::Flow::P body: Get the second-of-the-minute of the time. - !ruby/struct:SM::Flow::H level: 3 text: sec_fraction() - !ruby/struct:SM::Flow::P body: Get the fraction of a second of the time. This is returned as a <tt>Rational</tt>. The unit is in days. I do NOT recommend you to use this method. - !ruby/struct:SM::Flow::H level: 3 text: zone() - !ruby/struct:SM::Flow::P body: Get the time zone as a String. This is representation of the time offset such as "+1000", not the true time-zone name. - !ruby/struct:SM::Flow::H level: 3 text: offset() - !ruby/struct:SM::Flow::P body: Get the time zone offset as a fraction of a day. This is returned as a <tt>Rational</tt>. - !ruby/struct:SM::Flow::H level: 3 text: new_offset(of=0) - !ruby/struct:SM::Flow::P body: Create a new DateTime object, identical to the current one, except with a new time zone offset of <tt>of</tt>. <tt>of</tt> is the new offset from UTC as a fraction of a day. constants: [] full_name: DateTime includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: strftime - !ruby/object:RI::MethodSummary name: to_s name: DateTime superclass: Date