The C library function struct tm *gmtime(const time_t *timer) uses the value pointed by timer to fill a tm structure with the values that represent the corresponding time, expressed in Coordinated Universal Time (UTC) or GMT timezone.
Syntax:struct tm *gmtime(const time_t *timer)
Example:#include
#include
int main()
{
time_t orig_format;
time(&orig_format);
printf ("Universal Time is %s",
asctime(gmtime(&orig_format)));
return 0;
}
Output:
Universal Time is Sat Sep 22 08:11:40 2012
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 257 / 158769114. Delta: 0.00267 с