Share via


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 (
         DateTime time
)

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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

TimeZone Class
TimeZone Members
System Namespace