Define Utc Time Zone

-->
  1. Define Utc Time Zones
  2. Define Utc Time Zone
  3. Define Utc Time Zone And What Is It Used For

Gets the system time.

Define Utc Time Zone

Areas with same time currently (UTC +0). Greenwich Mean Time (GMT) has no offset from Coordinated Universal Time (UTC). This time zone is in use during standard time in: Europe, Africa, North America, Antarctica. See full time zone map. UTC+5h or GMT +5h would refer to that time zone being five hours ahead of UTC of GMT and so forth for the other time zones. The usage of UTC and GMT is based upon a twenty four hour clock, similar to military time, and is based upon the 0 degrees longitude meridian, referred to as the Greenwich meridian in Greenwich, England. A time zone is a geographical region in which the same time is used. Typically, but not always, adjacent time zones are one hour apart. The time in any of the world's time zones can be expressed as an offset from Coordinated Universal Time (UTC). Many of the world's time zones support daylight saving time.

Syntax

Parameters

  • UTC−04:00 is an identifier for a time offset from UTC of −04:00. It is observed in the Eastern Time Zone (e.g., Canada and the United States) during the warm months of daylight saving time, as Eastern Daylight Time.The Atlantic Time Zone observes it during standard time (cold months). It is observed all year in the Eastern Caribbean and several South American countries.
  • Areas with same time currently (UTC -4). Atlantic Standard Time (AST) is 4 hours behind Coordinated Universal Time (UTC). This time zone is in use during standard time in: North America, Atlantic, Caribbean. See full time zone map.

destTime
Pointer to the storage location for time.

Return Value

Returns the time as seconds elapsed since midnight, January 1, 1970, or -1 in the case of an error.

Define Utc Time Zones

Remarks

4pm gmt to ist. The time function returns the number of seconds elapsed since midnight (00:00:00), January 1, 1970, Coordinated Universal Time (UTC), according to the system clock. The return value is stored in the location given by destTime. This parameter may be NULL, in which case the return value is not stored.

time is a wrapper for _time64 and time_t is, by default, equivalent to __time64_t. If you need to force the compiler to interpret time_t as the old 32-bit time_t, you can define _USE_32BIT_TIME_T. This is not recommended because your application may fail after January 18, 2038; the use of this macro is not allowed on 64-bit platforms.

Requirements

RoutineRequired C headerRequired C++ header
time, _time32, _time64<time.h><ctime> or <time.h>

For additional compatibility information, see Compatibility.

Example

Define Utc Time Zone

See also

Define Utc Time Zone And What Is It Used For

Time Management
asctime, _wasctime
asctime_s, _wasctime_s
_ftime, _ftime32, _ftime64
gmtime, _gmtime32, _gmtime64
gmtime_s, _gmtime32_s, _gmtime64_s
localtime, _localtime32, _localtime64
localtime_s, _localtime32_s, _localtime64_s
_utime, _utime32, _utime64, _wutime, _wutime32, _wutime64