Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtASN1CustomDateTime.UpdatePresent

function UpdatePresent: Boolean; override;
Present when it holds a time. A time never set holds no time, though its text (00000000000000Z, or 000000000000Z as a UTCTime) is not empty, so the rule of tASN1Base - present when the text is not empty - does not apply to it. Without a time an OPTIONAL field is not present, and any other keeps the presence its structure gives it: a mandatory field is still written, and so is the alternative of a mandatory CHOICE, which the CHOICE keeps present. A field with a DEFAULT keeps the rule of tASN1Base.