Click or drag to resize
ClientConfigurationSetCustomEpochTicks Method

Sets the custom base time

OSS's token validation logic depends on the time. It requires that there's no more than 15 min time difference between client and OSS server. This API calculates the difference between local time to epoch time. Later one other APIs use this difference to offset the local time before sending request to OSS.

Namespace: Aliyun.OSS.Common
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax
public void SetCustomEpochTicks(
	long epochTicks
)

Parameters

epochTicks
Type: SystemInt64
Custom Epoch ticks (in seconds)
See Also