1e41f4b71Sopenharmony_ci# time_service.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciDeclares the API for obtaining the time and time zone information.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**Library**: libtime_service_ndk.so
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**System capability**: SystemCapability.MiscServices.Time
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Since**: 12
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Related module**: [TimeService](_time_service.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## Summary
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci### Types
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci| Name| Description| 
23e41f4b71Sopenharmony_ci| -------- | -------- |
24e41f4b71Sopenharmony_ci|[TimeService_ErrCode](_time_service.md#timeservice_errcode)| Enumerates the error codes.| 
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci### Enums
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci| Name| Description| 
30e41f4b71Sopenharmony_ci| -------- | -------- |
31e41f4b71Sopenharmony_ci| [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.| 
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci### Functions
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci| Name| Description| 
37e41f4b71Sopenharmony_ci| -------- | -------- |
38e41f4b71Sopenharmony_ci| [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