Class CorrectClockSkew
Utility class that stores clock skew information.
public static class CorrectClockSkew
- Inheritance
-
CorrectClockSkew
- Inherited Members
Methods
GetClockCorrectionForEndpoint(string)
Return clock skew correction value for an endpoint if there is one.
AWSConfigs.ManualClockCorrection overrides globally any calculated service endpoint specific clock correction value.
public static TimeSpan GetClockCorrectionForEndpoint(string endpoint)
Parameters
endpoint
stringEndpoint should in a form such as "https://s3"
Returns
- TimeSpan
Clock correction value for an endpoint in TimeSpan. TimeSpan.Zero if no such clock correction is set.
GetCorrectedUtcNowForEndpoint(string)
Get clock skew corrected UTC now value. If ManualClockCorrection is set, use ManualClockCorrection instead of endpoint specific clock correction value.
public static DateTime GetCorrectedUtcNowForEndpoint(string endpoint)
Parameters
endpoint
string