Class
ArchiveTimestamp
OfficeIMO.Archives
Timestamp helpers for reproducible archives.
Inheritance
- object
- ArchiveTimestamp
Methods
public static DateTimeOffset? FromSourceDateEpoch() #Reads SOURCE_DATE_EPOCH as a UTC time, or returns null when the variable is unset or empty. Assign the result to ArchiveWriterOptions.Timestamp, optionally with ArchiveWriterOptions.ClampToTimestamp to only cap newer times.
Returns
DateTimeOffset?Exceptions
FormatException– The variable is set but is not a non-negative decimal count of seconds.
Inherited Methods
Fields
public const string SourceDateEpochVariable #The environment variable defined by the reproducible-builds specification.
Value:
SOURCE_DATE_EPOCH