Skip to content

Latest commit

 

History

History
93 lines (82 loc) · 2.43 KB

File metadata and controls

93 lines (82 loc) · 2.43 KB
title _get_timezone | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-standard-libraries
ms.tgt_pltfrm
ms.topic article
apiname
_get_timezone
apilocation
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-time-l1-1-0.dll
apitype DLLExport
f1_keywords
_get_timezone
get_timezone
dev_langs
C++
helpviewer_keywords
time zones
get_timezone function
_get_timezone function
ms.assetid 30ab0838-0ae9-4a2f-bfe6-a49ee443b21e
caps.latest.revision 17
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

_get_timezone

Retrieves the difference in seconds between coordinated universal time (UTC) and local time.

Syntax

  
      error_t _get_timezone(   
    long* seconds  
);  

Parameters

seconds
The difference in seconds between UTC and local time.

Return Value

Zero if successful or an errno value if an error occurs.

Remarks

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.

Requirements

Routine Required header
_get_timezone <time.h>

For more information, see Compatibility.

See Also

Time Management
errno, _doserrno, _sys_errlist, and _sys_nerr
_get_daylight
_get_dstbias
_get_tzname