Class: RASN1::Types::GeneralizedTime
- Defined in:
- lib/rasn1/types/generalized_time.rb
Overview
ASN.1 GeneralizedTime
+Base#value of a GeneralizedTime should be a ruby Time.
Notes
When encoding, resulting string is always a UTC time, appended with Z
. Minutes and seconds are always generated. Fractions of second are generated if value Time object have them.
On parsing, are supported:
-
UTC times (ending with
Z
), -
local times (no suffix),
-
local times with difference between UTC and this local time (ending with
sHHMM
, wheres
is +++ or-
, andHHMM
is the time differential betwen UTC and local time).
These times may include minutes and seconds. Fractions of hour, minute and second are supported.
Constant Summary collapse
- TAG =
24
Constants inherited from Primitive
Constants inherited from Base
Base::CLASSES, Base::INDEFINITE_LENGTH, Base::MAX_TAG
Instance Attribute Summary
Attributes inherited from Base
#asn1_class, #default, #name, #value
Class Method Summary collapse
-
.type ⇒ String
Get ASN.1 type.
Methods inherited from Base
#==, #constructed?, encode_type, #explicit?, #implicit?, #initialize, #initialize_copy, #inspect, #optional?, parse, #parse!, #primitive?, #tag, #tagged?, #to_der, #type, #value_size
Constructor Details
This class inherits a constructor from RASN1::Types::Base
Class Method Details
.type ⇒ String
Get ASN.1 type
27 28 29 |
# File 'lib/rasn1/types/generalized_time.rb', line 27 def self.type 'GeneralizedTime' end |