Represents an instant in time, typically expressed as a date and time of day.
.NET When programming with .NET, this type is hidden, and developers should use the System.DateTimeOffset structure.
C++ Similar to FILETIME but with important differences. See Remarks.
public : struct DateTime
public struct DateTime
Public Structure DateTime
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.FoundationContract (introduced v1)
In Visual C++ component extensions (C++/CX), a DateTime.UniversalTime value has the same granularity as a FILETIME (100-nanosecond intervals). For positive values, a DateTime.UniversalTime value is identical to a FILETIME value although it can only represent dates up to about 29000 C.E. A negative value represents the number of intervals prior to January 1, 1601 and can represent dates back to about 27,400 B.C.E. For the Gregorian Calendar, you can use a DateTimeFormatter to create string representations of a DateTime for dates after midnight on Year 1 C.E.
UniversalTime UniversalTime UniversalTime UniversalTime
A 64-bit signed integer that represents a point in time as the number of 100-nanosecond intervals prior to or after midnight on January 1, 1601 (according to the Gregorian Calendar).
public : field long UniversalTime
public field long UniversalTime
Public Field UniversalTime