Windows Server 2003 Time

Posted on 2014-08-22
Last Modified: 2014-08-22
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.

Question by:smithmrk
    LVL 14

    Accepted Solution

    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

    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

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    It’s quite interesting for me as I worked with Excel using 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 …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now