Class: VORuby::Resources::VOResource::V1_0::UTCTimestamp
- Includes:
- XML::Mapping
- Defined in:
- lib/voruby/resources/voresource/voresource_v1_0.rb,
lib/voruby/resources/voresource/voresource_v1_0.rb
Overview
A timestamp that is compliant with ISO8601 but disallows the use of a timezone indicator.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#value=(timestamp) ⇒ Object
220 221 222 223 224 |
# File 'lib/voruby/resources/voresource/voresource_v1_0.rb', line 220 def value=() raise RuntimeError, "UTCTimestamp '#{} in wrong format" if !.strip.match('^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?$') @value = Time.parse(.strip) end |