This documentation is archived and is not being maintained.
object that is set to the current date and time on the current computer, with the offset set to the local time's offset from Coordinated Universal Time (UTC). DateTimeOffset
static member Now : DateTimeOffset
System .DateTimeOffset A object whose date and time is the current local time and whose offset is the local time zone's offset from Coordinated Universal Time (UTC). DateTimeOffset
The precision of the current local time's millisecond component depends on the resolution of the system clock. On Windows NT 3.5 and later, and Windows Vista operating systems, the clock's resolution is approximately 10-15 milliseconds.
The following example uses the
and Now properties to determine the resolution of the system clock. It displays the time only when the value of its millisecond component has changed. Millisecond
No code example is currently available or this language may not be supported.
Supported in: 4, 3.5 SP1, 3.0 SP1, 2.0 SP1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Portable Class Library
Supported in: Portable Class Library
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see
.NET Framework System Requirements.