D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Time
/
Filename :
xmlschema-i.ri
back
Copy
U:RDoc::AnyMethod[iI"xmlschema:ETI"Time#xmlschema;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"MReturns a string which represents the time as a dateTime defined by XML ;TI"Schema:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"CCYY-MM-DDThh:mm:ssTZD ;TI" CCYY-MM-DDThh:mm:ss.sssTZD ;T:@format0o; ; [I"!where TZD is Z or [+-]hh:mm.;T@o; ; [I"KIf self is a UTC time, Z is used as TZD. [+-]hh:mm is used otherwise.;T@o; ; [I"J+fraction_digits+ specifies a number of digits to use for fractional ;TI"&seconds. Its default value is 0.;T@o;; [ I"require 'time' ;TI" ;TI"t = Time.now ;TI"1t.iso8601 # => "2011-10-05T22:26:12-04:00" ;T; 0o; ; [I"0You must require 'time' to use this method.;T: @fileI"lib/time.rb;T:0@omit_headings_from_table_of_contents_below000[[I"iso8601;To;; [ o; ; [I"NParses +time+ as a dateTime defined by the XML Schema and converts it to ;TI"Na Time object. The format is a restricted version of the format defined ;TI"by ISO 8601.;T@o; ; [I"NArgumentError is raised if +time+ is not compliant with the format or if ;TI"8the Time class cannot represent the specified time.;T@o; ; [I"8See #xmlschema for more information on this format.;T@o;; [ I"require 'time' ;TI" ;TI"1Time.xmlschema("2011-10-05T22:26:12-04:00") ;TI"##=> 2011-10-05 22:26:12-04:00 ;T; 0o; ; [I"0You must require 'time' to use this method.;T;@';0[I"iso8601;T@+I"(fraction_digits=0);T@'FI" Time;TcRDoc::NormalClass00