linux - Adjust Time to Daylight Saving for localtime C++ -
i have piece of optimized function gmt time. convert local time. want call localtime , gmtime function once adjust time localtime calling localtime , gmtime multiple times defeat purpose of using optimized function. idea adding difference in time zone gmt time obtained. however, problem how adjust localtime when there daylight saving? ideas on checking that?
thanks.
you use tz database stored of time in /usr/share/lib/zoneinfo in linux distributions. database manages daylight saving not nees deal that.
Comments
Post a Comment