Hello,
I woulld like to know if a specified time of the day is passed. I don't really like the way I am doing :
private static readonly TimeSpan _whenTimeIsOver = new TimeSpan(16,25,00);
internal static bool IsTimeOver()
{
return DateTime.Now.TimeOfDay.Subtract(_whenTimeIsOver ).Ticks > 0;
}
How do you do ?