TimeZone.ToLocalTime Method
Returns the local time that corresponds to a specified Coordinated Universal Time (UTC) time.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute]
public virtual DateTime ToLocalTime (
DateTimetime
)
Parameters
- time
The specified UTC time.
Return Value
A DateTime object whose value is the local time that corresponds to the time parameter.
Remarks
Coordinated Universal Time (UTC) was previously known as Greenwich Mean Time (GMT). Local time is the date and time on the computer you are using. Offset is the difference between local time and UTC (local time = UTC + offset).
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.