title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | apiname | apilocation | apitype | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_get_timezone | Microsoft Docs |
11/04/2016 |
|
article |
|
|
DLLExport |
|
|
|
30ab0838-0ae9-4a2f-bfe6-a49ee443b21e |
17 |
corob-msft |
corob |
ghogen |
Retrieves the difference in seconds between coordinated universal time (UTC) and local time.
error_t _get_timezone(
long* seconds
);
seconds
The difference in seconds between UTC and local time.
Zero if successful or an errno
value if an error occurs.
The _get_timezone
function retrieves the difference in seconds between UTC and local time as an integer. The default value is 28,800 seconds, for Pacific Standard Time (eight hours behind UTC).
If seconds
is NULL
, the invalid parameter handler is invoked, as described in Parameter Validation. If execution is allowed to continue, this function sets errno
to EINVAL
and returns EINVAL
.
Routine | Required header |
---|---|
_get_timezone |
<time.h> |
For more information, see Compatibility.
Time Management
errno, _doserrno, _sys_errlist, and _sys_nerr
_get_daylight
_get_dstbias
_get_tzname