[]
Converts the value of the local time to UTC time. Note that there may be different possible interpretations at the daylight time boundaries.
public DateTime ToUniversalTime(DateTime local)
Type | Name | Description |
---|---|---|
DateTime | local | The local time to convert. |
Type | Description |
---|---|
DateTime | The UTC DateTime. |
Type | Condition |
---|---|
NotSupportedException | Thrown if the method failed due to missing platform support. |