<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/5528253?origin\x3dhttp://granys-kids-kids.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </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