Class: RASN1::Types::UtcTime
- Defined in:
- lib/rasn1/types/utc_time.rb
Overview
ASN.1 UTCTime
+Base#value of a UtcTime
should be a ruby Time.
Notes
When encoding, resulting string is always a UTC time, appended with Z
. Seconds are always generated.
On parsing, UTC times (ending with Z
) and local times (ending with sHHMM
, where s
is +++ or -
, and HHMM
is the time differential betwen UTC and local time) are both supported. Seconds may be present or not.
Constant Summary collapse
- TAG =
UtcTime tag value
23
Constants inherited from Primitive
Constants inherited from Base
Base::CLASSES, Base::CLASS_MASK, Base::INDEFINITE_LENGTH, Base::MAX_TAG, Base::UNDUPPABLE_TYPES
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
26 27 28 |
# File 'lib/rasn1/types/utc_time.rb', line 26 def self.type 'UTCTime' end |