We help IT Professionals succeed at work.

Windows Server 2003 Time

163 Views
Last Modified: 2014-08-22
This is more of a question of WHY?

So I have a program that I wrote in VB.net 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.

Thanks,
Mark
Comment
Watch Question

Senior Manager (Wintel Engineering)
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

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!

Thanks,
Mark
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.