in reply to Re: How do i select the past date and highlight the current date?my code is
in thread How do i select the past date and highlight the current date?my code is

I would be interested to know why you use 22 hours rather than 23 or 24. I guess because 24 hours might skip a day at change of hours (to/from daylight savings time where I am but no doubt called otherwise elsewhere) and perhaps in some places the change is more than one hour.

  • Comment on Re^2: How do i select the past date and highlight the current date?my code is

Replies are listed 'Best First'.
Re^3: How do i select the past date and highlight the current date?my code is
by Corion (Patriarch) on Apr 27, 2010 at 08:20 UTC

    Exactly. Because I don't want to have to think about when a daylight savings time change happens in date calculations, I'm not adding/subtracting 24 hours, as there is one day every year which only has 23 hours and one day which has 25 hours. I'm not adding/subtracting exactly 23 hours because I don't want to think about the boundary conditions. So I settle on 22 hours.