添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Hi everyone!
I have used Tzedit utility to activate DST from June to August 31st in windowa xp. it works fine but
when i use tm structure to papulate with time values and set .tm_isdt = -1 and call mktime method , it
does not result the correct no of seconds. ie
time_t StartSeconds;
struct tm StartTime;
StartTime.tm_year = 2008 -1900;
StartTime.tm_mon = 6 -1;
StartTime.tm_mday = 6;
StartTime.tm_hour = 12;
StartTime.tm_min = 10;
StartTime.tm_sec = 0;
StartTime.tm_isdst = -1;
StartSeconds = mktime(&StartTime);
it gives me the value 1212736200 instead of 1212732600 although the DST is activated. ok but I want to keep the .tm_isdst = -1 and it should know that whether DST is ON or OFF and what is its Daylight Bias.
if I keep .tm_isdst = +1 it means that DST is ON and daylight Bias = -60
but if change the daylight setting ( by changing DaylightBias = -120 or +60) or OFF the DST then the .tm_isdst value must be changed which is rather static solution. I still cannot understand what you want.
If you want to somehow set DST then you must set tm_isdst to some positive number.
If you want use the standard time then you must set it to 0.
But if you set it to a value less than zero then:
I want to tell you that in Solaris 1st I make the settings of Daylight saving and the I use .tm_isdst = -1 now it calculate the no of seconds propoerly because the system tells that for this timing the DST is ON and OFF for these timing. now if I change the setting of DST or OFF the DST, I dont have to make changes in the code and it works properly.
BUT if I do same job in Windows it fails to work properly instead i have to tell that set .tm_isdst = +1 or +2. and each time I have to adjust code when I change setting of DST or OFF the DST. * The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform. * Porting from Android to Windows 8: The Real Story
Do you have an Android application? How hard would it really be to port to Windows 8? * Guide to Porting Android Applications to Windows 8
If you've already built for Android, learn what do you really need to know to port your application to Windows Phone 8. * HTML5 Development Center
Our portal for articles, videos, and news on HTML5, CSS3, and JavaScript * Windows App Gallery
See the Windows 8.x apps we've spotlighted or submit your own app to the gallery! Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.