Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9157527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:02:26+00:00 2026-06-17T13:02:26+00:00

Why is the minimum resolution of a DateTime based on Ticks (100-nanosecond units) rather

  • 0

Why is the minimum resolution of a DateTime based on Ticks (100-nanosecond units) rather than on Milliseconds?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:02:27+00:00Added an answer on June 17, 2026 at 1:02 pm
    • TimeSpan and DateTime use the same Ticks making operations like adding a TimeSpan to a DateTime trivial.
    • More precision is good. Mainly useful for TimeSpan, but above reason transfers that to DateTime.

      For example StopWatch measures short time intervals often shorter than a millisecond. It can return a TimeSpan.
      In one of my projects I used TimeSpan to address audio samples. 100ns is short enough for that, milliseconds wouldn’t be.

    • Even using milliseconds ticks you need an Int64 to represent DateTime. But then you’re wasting most of the range, since years outside 0 to 9999 aren’t really useful. So they chose ticks as small as possible while allowing DateTime to represent the year 9999.

      There are about 261.5 ticks with 100ns. Since DateTime needs two bits for timezone related tagging, 100ns ticks are the smallest power-of-ten interval that fits an Int64.

    So using longer ticks would decrease precision, without gaining anything. Using shorter ticks wouldn’t fit 64 bits. => 100ns is the optimal value given the constraints.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to change the meta viewport based on device resolution? we can use media
What's the second minimum value that a decimal can represent? That is the value
I have a minimum of 12 positions. The min and max values are 0
Is there any minimum compute capability to use CUDA-OpenGL interoperability? I did not find
How to set the minimum scale to a specific cell value, where in the
What determines the minimum number of page frames that must be allocated to a
What is the minimum code required to read a file and assign its contents
What is the minimum source length (in bytes) for LZ77? Can anyone suggest a
What are the bare minimum requirements to deploy an exe that uses TFS APIs
What's the minimum boilerplate code required to setup an OpenGL view (with the necessary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.