Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
DateTime /
Delete
Unzip
Name
Size
Permission
Date
Action
_strptime-c.ri
483
B
-rw-r--r--
2023-07-26 17:26
as_json-i.ri
290
B
-rw-r--r--
2023-07-26 17:26
cdesc-DateTime.ri
8.73
KB
-rw-r--r--
2023-07-26 17:26
civil-c.ri
1008
B
-rw-r--r--
2023-07-26 17:26
commercial-c.ri
846
B
-rw-r--r--
2023-07-26 17:26
httpdate-c.ri
621
B
-rw-r--r--
2023-07-26 17:26
iso8601-c.ri
879
B
-rw-r--r--
2023-07-26 17:26
iso8601-i.ri
614
B
-rw-r--r--
2023-07-26 17:26
jd-c.ri
789
B
-rw-r--r--
2023-07-26 17:26
jisx0301-c.ri
623
B
-rw-r--r--
2023-07-26 17:26
jisx0301-i.ri
576
B
-rw-r--r--
2023-07-26 17:26
json_create-c.ri
444
B
-rw-r--r--
2023-07-26 17:26
new-c.ri
1004
B
-rw-r--r--
2023-07-26 17:26
now-c.ri
466
B
-rw-r--r--
2023-07-26 17:26
ordinal-c.ri
865
B
-rw-r--r--
2023-07-26 17:26
parse-c.ri
999
B
-rw-r--r--
2023-07-26 17:26
rfc2822-c.ri
716
B
-rw-r--r--
2023-07-26 17:26
rfc3339-c.ri
618
B
-rw-r--r--
2023-07-26 17:26
rfc3339-i.ri
578
B
-rw-r--r--
2023-07-26 17:26
rfc822-c.ri
714
B
-rw-r--r--
2023-07-26 17:26
strftime-i.ri
9.21
KB
-rw-r--r--
2023-07-26 17:26
strptime-c.ri
1.69
KB
-rw-r--r--
2023-07-26 17:26
to_date-i.ri
262
B
-rw-r--r--
2023-07-26 17:26
to_datetime-i.ri
246
B
-rw-r--r--
2023-07-26 17:26
to_json-i.ri
438
B
-rw-r--r--
2023-07-26 17:26
to_s-i.ri
509
B
-rw-r--r--
2023-07-26 17:26
to_time-i.ri
262
B
-rw-r--r--
2023-07-26 17:26
xmlschema-c.ri
628
B
-rw-r--r--
2023-07-26 17:26
xmlschema-i.ri
618
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::NormalClass[iI" DateTime:ET@I" Date;Fo:RDoc::Markup::Document:@parts[o;;[ao:RDoc::Markup::Paragraph;[I"9date and datetime class - Tadayoshi Funaba 1998-2011;To:RDoc::Markup::BlankLine o; ;[I"3'date' provides two classes Date and DateTime.;T@S:RDoc::Markup::Heading: leveli: textI"Terms and definitions;T@o; ;[I"ESome terms and definitions are based on ISO 8601 and JIS X 0301.;T@S;;i; I"calendar date;T@o; ;[I">The calendar date is a particular day of a calendar year,;TI"Didentified by its ordinal number within a calendar month within;TI"that year.;T@o; ;[I"1In those classes, this is so-called "civil".;T@S;;i; I"ordinal date;T@o; ;[I"GThe ordinal date is a particular day of a calendar year identified;TI"+by its ordinal number within the year.;T@o; ;[I"3In those classes, this is so-called "ordinal".;T@S;;i; I"week date;T@o; ;[I"IThe week date is a date identified by calendar week and day numbers.;T@o; ;[ I"DThe calendar week is a seven day period within a calendar year,;TI"Estarting on a Monday and identified by its ordinal number within;TI"Bthe year; the first calendar week of the year is the one that;TI"@includes the first Thursday of that year. In the Gregorian;TI"Gcalendar, this is equivalent to the week which includes January 4.;T@o; ;[I"3In those classes, this so-called "commercial".;T@S;;i; I"julian day number;T@o; ;[I"HThe Julian day number is in elapsed days since noon (Greenwich mean;TI";time) on January 1, 4713 BCE (in the Julian calendar).;T@o; ;[ I"HIn this document, the astronomical Julian day number is same as the;TI"Boriginal Julian day number. And the chronological Julian day;TI"Gnumber is a variation of the Julian day number. Its days begin at;TI"midnight on local time.;T@o; ;[I"HIn this document, when the term "Julian day number" simply appears,;TI"Ait just refers to "chronological Julian day number", not the;TI"original.;T@o; ;[I":In those classes, those are so-called "ajd" and "jd".;T@S;;i; I"modified julian day number;T@o; ;[I"EThe modified Julian day number is in elapsed days since midnight;TI"A(Coordinated universal time) on November 17, 1858 CE (in the;TI"Gregorian calendar).;T@o; ;[ I"EIn this document, the astronomical modified Julian day number is;TI">same as the original modified Julian day number. And the;TI"Cchronological modified Julian day number is a variation of the;TI"Emodified Julian day number. Its days begin at midnight on local;TI" time.;T@o; ;[I"HIn this document, when the term "modified Julian day number" simply;TI"Bappears, it just refers to "chronological modified Julian day;TI"number", not the original.;T@o; ;[I"/In those classes, this is so-called "mjd".;T@S;;i; I" Date;T@o; ;[I"DA subclass of Object includes Comparable module, easily handles;TI" date.;T@o; ;[I"DDate object is created with Date::new, Date::jd, Date::ordinal,;TI"@Date::commercial, Date::parse, Date::strptime, Date::today,;TI"Time#to_date or etc.;T@o:RDoc::Markup::Verbatim;[I"require 'date' ;FI" ;FI">Date.new(2001,2,3) #=> #<Date: 2001-02-03 ...> ;FI">Date.jd(2451944) #=> #<Date: 2001-02-03 ...> ;FI">Date.ordinal(2001,34) #=> #<Date: 2001-02-03 ...> ;FI">Date.commercial(2001,5,6) #=> #<Date: 2001-02-03 ...> ;FI">Date.parse('2001-02-03') #=> #<Date: 2001-02-03 ...> ;FI"-Date.strptime('03-02-2001', '%d-%m-%Y') ;FI"> #=> #<Date: 2001-02-03 ...> ;FI">Time.new(2001,2,3).to_date #=> #<Date: 2001-02-03 ...> ;Fo; ;[I"DAll date objects are immutable; hence cannot modify themselves.;T@o; ;[I"BThe concept of this date object can be represented as a tuple;TI"Aof the day count, the offset and the day of calendar reform.;T@o; ;[I">The day count denotes the absolute position of a temporal;TI"Ddimension. The offset is relative adjustment, which determines;TI"@decoded local time with the day count. The day of calendar;TI"Breform denotes the start day of the new style. The old style;TI"<of the West is the Julian calendar which was adopted by;TI"DCaersar. The new style is the Gregorian calendar, which is the;TI".current civil calendar of many countries.;T@o; ;[I"CThe day count is virtually the astronomical Julian day number.;TI"<The offset in this class is usually zero, and cannot be;TI"specified directly.;T@o; ;[ I"AAn optional argument the day of calendar reform (start) as a;TI"DJulian day number, which should be 2298874 to 2426355 or -/+oo.;TI"@The default value is Date::ITALY (2299161=1582-10-15). See;TI"also sample/cal.rb.;T@o;;[I"($ ruby sample/cal.rb -c it 10 1582 ;FI" October 1582 ;FI" S M Tu W Th F S ;FI" 1 2 3 4 15 16 ;FI"17 18 19 20 21 22 23 ;FI"24 25 26 27 28 29 30 ;FI"31 ;FI" ;FI"($ ruby sample/cal.rb -c gb 9 1752 ;FI" September 1752 ;FI" S M Tu W Th F S ;FI" 1 2 14 15 16 ;FI"17 18 19 20 21 22 23 ;FI"24 25 26 27 28 29 30 ;Fo; ;[I"9Date object has various methods. See each reference.;T@o;;[ I"$d = Date.parse('3rd Feb 2001') ;FI"> #=> #<Date: 2001-02-03 ...> ;FI"+d.year #=> 2001 ;FI"(d.mon #=> 2 ;FI"(d.mday #=> 3 ;FI"(d.wday #=> 6 ;FI">d += 1 #=> #<Date: 2001-02-04 ...> ;FI"8d.strftime('%a %d %b %Y') #=> "Sun 04 Feb 2001" ;FS;;i; I" DateTime;T@o; ;[I"EA subclass of Date easily handles date, hour, minute, second and;TI"offset.;T@o; ;[I"?DateTime does not consider any leapseconds, does not track;TI"any summer time rules.;T@o; ;[I"ADateTime object is created with DateTime::new, DateTime::jd,;TI">DateTime::ordinal, DateTime::commercial, DateTime::parse,;TI"@DateTime::strptime, DateTime::now, Time#to_datetime or etc.;T@o;;[ I"require 'date' ;FI" ;FI""DateTime.new(2001,2,3,4,5,6) ;FI"I #=> #<DateTime: 2001-02-03T04:05:06+00:00 ...> ;Fo; ;[I";The last element of day, hour, minute or senond can be;TI"Dfractional number. The fractional number's precision is assumed;TI"at most nanosecond.;T@o;;[I"DateTime.new(2001,2,3.5) ;FI"I #=> #<DateTime: 2001-02-03T12:00:00+00:00 ...> ;Fo; ;[I"=An optional argument the offset indicates the difference;TI"Abetween the local time and UTC. For example, Rational(3,24);TI"Crepresents ahead of 3 hours of UTC, Rational(-5,24) represents;TI"Bbehind of 5 hours of UTC. The offset should be -1 to +1, and;TI"Cits precision is assumed at most second. The default value is;TI"zero (equals to UTC).;T@o;;[I"1DateTime.new(2001,2,3,4,5,6,Rational(3,24)) ;FI"I #=> #<DateTime: 2001-02-03T03:04:05+03:00 ...> ;Fo; ;[I"also accepts string form.;T@o;;[I"+DateTime.new(2001,2,3,4,5,6,'+03:00') ;FI"I #=> #<DateTime: 2001-02-03T03:04:05+03:00 ...> ;Fo; ;[I"DAn optional argument the day of calendar reform (start) denotes;TI"?a Julian day number, which should be 2298874 to 2426355 or;TI"C-/+oo. The default value is Date::ITALY (2299161=1582-10-15).;T@o; ;[I"=DateTime object has various methods. See each reference.;T@o;;[I"7d = DateTime.parse('3rd Feb 2001 04:05:06+03:30') ;FI"I #=> #<DateTime: 2001-02-03T04:05:06+03:30 ...> ;FI" d.hour #=> 4 ;FI" d.min #=> 5 ;FI" d.sec #=> 6 ;FI"%d.offset #=> (7/48) ;FI"'d.zone #=> "+03:30" ;FI"d += Rational('1.5') ;FI"I #=> #<DateTime: 2001-02-04%16:05:06+03:30 ...> ;FI" d = d.new_offset('+09:00') ;FI"I #=> #<DateTime: 2001-02-04%21:35:06+09:00 ...> ;FI"d.strftime('%I:%M:%S %p') ;FI", #=> "09:35:06 PM" ;FI"d > DateTime.new(1999) ;FI"" #=> true;F: @fileI"ext/date/date_core.c;To;;[o; ;[I"+DateTime serialization/deserialization;T;I""ext/json/lib/json/add/core.rb;T;0[ [ [ [[I" class;F[[:public[[I"_strptime;T@�[I" civil;T@�[I"commercial;T@�[I" httpdate;T@�[I"iso8601;T@�[I"jd;T@�[I" jisx0301;T@�[I"json_create;F@�[I"new;T@�[I"now;T@�[I"ordinal;T@�[I" parse;T@�[I"rfc2822;T@�[I"rfc3339;T@�[I"rfc822;T@�[I" strptime;T@�[I"xmlschema;T@�[:protected[ [:private[ [I" instance;F[[;[[I"as_json;F@�[I"iso8601;T@�[I" jisx0301;T@�[I"rfc3339;T@�[I" strftime;T@�[I"to_date;T@�[I"to_datetime;T@�[I"to_json;F@�[I" to_s;T@�[I"to_time;T@�[I"xmlschema;T@�[;[ [;[