Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
DateTime
/
//opt/alt/ruby21/share/ri/2.1.0/system/DateTime/strptime-c.ri
U:RDoc::AnyMethod[iI" strptime:ETI"DateTime::strptime;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"EParses the given representation of date and time with the given ;TI"Etemplate, and creates a date object. strptime does not support ;TI"6specification of flags and width unlike strftime.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"KDateTime.strptime('2001-02-03T04:05:06+07:00', '%Y-%m-%dT%H:%M:%S%z') ;TI"N #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...> ;TI"IDateTime.strptime('03-02-2001 04:05:06 PM', '%d-%m-%Y %I:%M:%S %p') ;TI"N #=> #<DateTime: 2001-02-03T16:05:06+00:00 ...> ;TI"LDateTime.strptime('2001-W05-6T04:05:06+07:00', '%G-W%V-%uT%H:%M:%S%z') ;TI"N #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...> ;TI"HDateTime.strptime('2001 04 6 04 05 06 +7', '%Y %U %w %H %M %S %z') ;TI"N #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...> ;TI"HDateTime.strptime('2001 05 6 04 05 06 +7', '%Y %W %u %H %M %S %z') ;TI"N #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...> ;TI"#DateTime.strptime('-1', '%s') ;TI"N #=> #<DateTime: 1969-12-31T23:59:59+00:00 ...> ;TI"&DateTime.strptime('-1000', '%Q') ;TI"N #=> #<DateTime: 1969-12-31T23:59:59+00:00 ...> ;TI";DateTime.strptime('sat3feb014pm+7', '%a%d%b%y%H%p%z') ;TI"N #=> #<DateTime: 2001-02-03T16:00:00+07:00 ...> ;T:@format0o; ; [I"'See also strptime(3) and strftime.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"oDateTime.strptime([string='-4712-01-01T00:00:00+00:00'[, format='%FT%T%z'[ ,start=ITALY]]]) -> datetime ;T0[ I" (p1 = v1, p2 = v2, p3 = v3);T@&FI" DateTime;TcRDoc::NormalClass00