Windows Server 2003 Time

This is more of a question of WHY?

So I have a program that I wrote in which compares the system time "Now.Hour.ToString" and compares it to an hour that I have defined in my Config File.  So for example IF Now.Hour.ToString = 15 my logic would call a function at 3:00 PM in the afternoon.  Which I tested and worked great!  Now I really want it to work at midnight...which for some reason the system time shows up as "0" instead of "24" which I had in my config file so my function never ran.

Why does the Windows Server 2003 or any Windows server for that matter show midnight at "0" instead of "24"?

Just curious...I will change the value in my config file to "0"...but still wanted to know why Windows is using zero instead of 24.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brad GrouxSenior Manager (Wintel Engineering)Commented:
Because there is no 24 in system and/or time. In military time if they tell you it is 12:30AM, they call it zero-zero-thirty or oh-oh-thirty. You can't have a 24:01 for 12:01AM because there are only 24 hours a day, so you can't have a 24:00 either because you'd be going from 24:00 to 00:01, which wouldn't make sense.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
smithmrkAuthor Commented:
OK, Thanks!
Now that you say that I have heard people say "Oh 100 hours" which I'm guess is midnight.

You can tell I have never been in the military!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.