Manipulating Dates
Like all other .NET languages and components, Visual Basic .NET stores times and dates as 64-bit integers that count the number of 100-nanosecond "ticks" since midnight, Coordinated Universal Time, January 1 of the year 1 in the Gregorian calendar. The Time value for one second after midnight on 1-Jan-0001 is 10,000,000.
Note
Coordinated Universal Time (UTC) is what you probably know as Greenwich Mean Time (GMT). UTC is the newer term that Microsoft uses in all its documentation.
One good thing about this date format is that comparisons involving dates and times are very easy. Equality comparisons are easy, too, provided that both values are accurate within 100 nanoseconds. Other kinds of date operations, however, would be difficult ...
Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.