ASN.1 DURATION tag: 34

The ASN.1 DURATION type is defined as a subset of the TIME type. The DURATION type is used to represent a particular time interval.


DurationType ::= DURATION
DURATION encoding example

A time interval of 2 years, 10 months, 15 days, 10 hours, 20 minutes and 30 seconds:

DurationType ::= DURATION
duration1 DurationType ::= "P2Y10M15DT10H20M30S"
        -- BER: 1F22 12 325931304D3135445431304832304D333053


The DURATION type can be constrained by a single value, by type inclusion, by property constraints, by duration range constraints, and by inner subtyping (constraints on the components of the equivalent SEQUENCE).

Related Topics