Summary
Gets an environment variable as a
DateTimeOffset from a Unix timestamp.
- Namespace
- Cake
.Common .Build .WoodpeckerCI - Containing Type
- WoodpeckerCIInfo
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. |
