Function Name: tzsetFunction prototype: void tzset (void)Function: A Unix-compatible function used to obtain the time zone. It is useless in a DOS environment.Function return:Parameter description:File:
# Include # Include # Include Int main
Part of this article is from: http://hi.baidu.com/peruke/blog/item/b8de06ec6a04583b27979132.htmlThe system is fedora:GLIBC realizes a conversion from RTC time to human readable time, the general system does not apply environment variable TZ to set
Linux time and time zone (Memo)-Linux general technology-Linux programming and kernel information. The following is a detailed description. The first thing to note is that my system is fedora, and other systems may be different.
1. The time is
The tzset seems to be in effect only at the time of initialization, which is useless when tzset is called multiple times.Today a little in-depth search for the implementation of the Tzset in glibc, found that this is not the case, its real
All the while, Tzset seems to take effect only when it's initialized, and it doesn't work when Tzset calls multiple times.
Today a little in-depth search of the glibc in the implementation of the Tzset, found that is not the case, its real
The first thing to say is that my system is fedora and other systems may not be exactly the same.
1, the time is kept in the hardware Real Time Clock (RTC), the RTC is powered by the motherboard battery, even if the power off source will not cause
The first thing to say is that my system is fedora and other systems may not be exactly the same.
1, the time is kept in the hardware Real Time Clock (RTC), the RTC is powered by the motherboard battery, even if the power off source will not cause
Linux Operating System Computing time:Main function: Time localtime gmtime asctime ctime mktimeDifftime strftime Gmstrftime1.time () functionPrototype: time_t time (time_t * timer)Function: Returns a time_t type of data representing the number of
Function category:1. Set the time: settimeofday, tzset2. Get time: time, ftime, gettimeofday3. Time Format Conversion: mktime, strftime; gmtime, localtime; asctime, ctime4. Others: Clock, difftime
Asctime: represents the time and date in string
Linux Operating System Computing time:Main function: Time localtime gmtime asctime ctime mktimeDifftime strftime Gmstrftime1.time () functionPrototype: time_t time (time_t * timer)Function: Returns a time_t type of data representing the number of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.