Get Timezone

Get the timezone where the server is located.

Request Format

GET https://{apigw-address}/batch-processing-service/v2.1/time?action=getTimeZone

Response Parameters

Name Data Type Description
data TimeZone Struct The timezone details. For more information, see TimeZone Struct

TimeZone Struct

Sample

{
  "timezone": "GMT+8"
}

Parameters

Name Data Type Description
timezone String The timezone, in the format of GMT+N.

Error Code

Code Message Description
62109 Internal server exception Internal server exception.

For other error codes, see Common Error Codes.

Samples

Request Sample

url: https://{apigw-address}/batch-processing-service/v2.1/time?action=getTimeZone
method: GET

Return Sample

{
  "code": 0,
  "msg": "OK",
  "data": {
    "timezone": "GMT+8"
  }
}

SDK Samples


You can access the SDK samples for batch processing service on GitHub: