D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Date
/
Filename :
strptime-c.ri
back
Copy
U:RDoc::AnyMethod[iI" strptime:ETI"Date::strptime;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BReturns a new \Date object with values parsed from +string+, ;TI"%according to the given +format+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"GDate.strptime('2001-02-03', '%Y-%m-%d') # => #<Date: 2001-02-03> ;TI"GDate.strptime('03-02-2001', '%d-%m-%Y') # => #<Date: 2001-02-03> ;TI"GDate.strptime('2001-034', '%Y-%j') # => #<Date: 2001-02-03> ;TI"GDate.strptime('2001-W05-6', '%G-W%V-%u') # => #<Date: 2001-02-03> ;TI"GDate.strptime('2001 04 6', '%Y %U %w') # => #<Date: 2001-02-03> ;TI"GDate.strptime('2001 05 6', '%Y %W %u') # => #<Date: 2001-02-03> ;TI"GDate.strptime('sat3feb01', '%a%d%b%y') # => #<Date: 2001-02-03> ;T:@format0o; ; [I"For other formats, see ;TI"G{Formats for Dates and Times}[rdoc-ref:strftime_formatting.rdoc]. ;TI">(Unlike Date.strftime, does not support flags and width.);T@o; ; [I"GSee argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].;T@o; ; [I"SSee also {strptime(3)}[https://man7.org/linux/man-pages/man3/strptime.3.html].;T@o; ; [I".Related: Date._strptime (returns a hash).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"WDate.strptime(string = '-4712-01-01', format = '%F', start = Date::ITALY) -> date ;T0[ I" (p1 = v1, p2 = v2, p3 = v3);T@'FI" Date;TcRDoc::NormalClass00