Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ArchiveTimestamp

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
static

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.

Fields

public const string SourceDateEpochVariable #

The environment variable defined by the reproducible-builds specification.

Value: SOURCE_DATE_EPOCH