<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d5528253\x26blogName\x3dGrand+Kids\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://granys-kids-kids.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://granys-kids-kids.blogspot.com/\x26vt\x3d323607410020986403', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Wednesday, March 17, 2010

Looks fun hu?

DateTime starttime = System.DateTime.Now;
DateTime endttime = starttime.AddMinutes(Convert.ToDouble(LotStageDuration));
#region Daylight_Savings_Time
/////////////////////////////////////////////////////
//
// Adjust end time for Daylight Savings Time
// //
/////////////////////////////////////////////////////
if (starttime.IsDaylightSavingTime() != endttime.IsDaylightSavingTime())
{
if (endttime.IsDaylightSavingTime())
{
endttime = endttime.AddHours(1);
}
else
{
endttime = endttime.AddHours(-1);
}
}
#endregion

1 Comments:

At 3:12 PM, Blogger Leisl said...

Ummmm ... no? Daylight Saving Time is EVIL no matter how you geek it up.

 

Post a Comment

<< Home