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:
Ummmm ... no? Daylight Saving Time is EVIL no matter how you geek it up.
Post a Comment
<< Home