You can use the volume ComplianceClock for calculating the retention period for performing various SnapLock operations such as committing a file to WORM state, checking the expiry date and so on.
You must initialize the system ComplianceClock before creating a SnapLock Compliance volume. The volume ComplianceClock gets initialized automatically. The volume ComplianceClock is used for calculating the retention period of a file.
To check whether a WORM file has expired, you compare the retention time of the file with the volume ComplianceClock time. If the volume ComplianceClock value is lesser than the retention time of the file, it indicates that the file has not expired.
To check whether a SnapLock Compliance volume can be destroyed, you compare its destroy time (equivalent to retention time) with volume ComplianceClock time. If the volume ComplianceClock time is less than the volume's destroy time, you cannot destroy the volume.