1# time_service.h 2 3 4## Overview 5 6Declares the API for obtaining the time and time zone information. 7 8**Library**: libtime_service_ndk.so 9 10**System capability**: SystemCapability.MiscServices.Time 11 12**Since**: 12 13 14**Related module**: [TimeService](_time_service.md) 15 16 17## Summary 18 19 20### Types 21 22| Name| Description| 23| -------- | -------- | 24|[TimeService_ErrCode](_time_service.md#timeservice_errcode)| Enumerates the error codes.| 25 26 27### Enums 28 29| Name| Description| 30| -------- | -------- | 31| [TimeService_ErrCode](_time_service.md#timeservice_errcode) {<br>[TIMESERVICE_ERR_OK](_time_service.md) = 0,<br>[TIMESERVICE_ERR_INTERNAL_ERROR](_time_service.md) = 13000001,<br>[TIMESERVICE_ERR_INVALID_PARAMETER](_time_service.md) = 13000002<br>} | Enumerates the error codes.| 32 33 34### Functions 35 36| Name| Description| 37| -------- | -------- | 38| [TimeService_ErrCode](_time_service.md#timeservice_errcode)[OH_TimeService_GetTimeZone](_time_service.md#oh_timeservice_gettimezone) (char \*timeZone, uint32_t len) | Returns the current system time zone.| 39