Link to home
Start Free TrialLog in
Avatar of smithmrk
smithmrkFlag for United States of America

asked on

Windows Server 2003 Time

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
ASKER CERTIFIED SOLUTION
Avatar of Brad Groux
Brad Groux
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smithmrk

ASKER

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