File: //usr/local/rvm/gems/ruby-2.5.9/doc/tzinfo-2.0.4/ri/TZInfo/Timestamp/for-c.ri
U:RDoc::AnyMethod[iI"for:ETI"TZInfo::Timestamp::for;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JWhen used without a block, returns a {Timestamp} representation of a ;TI"-given `Time`, `DateTime` or {Timestamp}.;To:RDoc::Markup::BlankLine o;
; [ I"LWhen called with a block, the {Timestamp} representation of `value` is ;TI"Jpassed to the block. The block must then return a {Timestamp}, which ;TI"Mwill be converted back to the type of the initial value. If the initial ;TI"Evalue was a {Timestamp}, the block result will just be returned.;T@o;
; [
I"HThe UTC offset of `value` can either be preserved (the {Timestamp} ;TI"Lrepresentation will have the same UTC offset as `value`), ignored (the ;TI"M{Timestamp} representation will have no defined UTC offset), or treated ;TI"Gas though it were UTC (the {Timestamp} representation will have a ;TI"6{utc_offset} of 0 and {utc?} will return `true`).;T@o;
; [I"@@param value [Object] a `Time`, `DateTime` or {Timestamp}. ;TI"H@param offset [Symbol] either `:preserve` to preserve the offset of;To:RDoc::Markup::Verbatim; [ I"E`value`, `:ignore` to ignore the offset of `value` and create a
;TI"I{Timestamp} with an unspecified offset, or `:treat_as_utc` to treat
;TI"Bthe offset of `value` as though it were UTC and create a UTC
;TI"{Timestamp}.
;T:@format0o;
; [I"?@yield [timestamp] if a block is provided, the {Timestamp};To;; [I",representation is passed to the block.
;T;
0o;
; [I"H@yieldparam timestamp [Timestamp] the {Timestamp} representation of;To;; [I"`value`.
;T;
0o;
; [I"L@yieldreturn [Timestamp] a {Timestamp} to be converted back to the type;To;; [I"of `value`.
;T;
0o;
; [I"@@return [Object] if called without a block, the {Timestamp};To;; [I"Crepresentation of `value`, otherwise the result of the block,
;TI"+converted back to the type of `value`.;T;
0:
@fileI"lib/tzinfo/timestamp.rb;T:0@omit_headings_from_table_of_contents_below00I"timestamp;T[ I" (value, offset = :preserve);T@@FI"Timestamp;TcRDoc::NormalClass00