[]
        
(Showing Draft Content)

C1.C1Schedule.TimeZoneInfo.ToUniversalTime

ToUniversalTime Method

ToUniversalTime(DateTime)

Converts the value of the local time to UTC time. Note that there may be different possible interpretations at the daylight time boundaries.

Declaration
public DateTime ToUniversalTime(DateTime local)
Parameters
Type Name Description
DateTime local

The local time to convert.

Returns
Type Description
DateTime

The UTC DateTime.

Exceptions
Type Condition
NotSupportedException

Thrown if the method failed due to missing platform support.