[Last Call] Learn how to a build a cloud-first strategyRegister Now


Windows Server 2003 Time

Posted on 2014-08-22
Medium Priority
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.

Question by:smithmrk
LVL 14

Accepted Solution

Brad Groux earned 2000 total points
ID: 40278802
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.

Author Closing Comment

ID: 40278810
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!


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question