Table of Contents

Class CorrectClockSkew

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

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 string

Endpoint 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

Returns

DateTime