WoodpeckerCIInfo.

GetEnvironmentDateTimeOffset(string) Method

Summary

Gets an environment variable as a DateTimeOffset from a Unix timestamp.

Syntax

protected DateTimeOffset GetEnvironmentDateTimeOffset(string variable)

Parameters

Name Type Description
variable string The environment variable name.

Return Value

Type Description
DateTimeOffset The environment variable as a DateTimeOffset, or DateTimeOffset.MinValue if the value is not a valid Unix timestamp.