Converts the value of the local time to UTC time.
Note that there may be different possible interpretations at the daylight time boundaries.
Namespace:
C1.C1ScheduleAssembly: C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)
Syntax
| C# |
|---|
public DateTime ToUniversalTime( DateTime local ) |
| Visual Basic (Declaration) |
|---|
Public Function ToUniversalTime ( _ local As DateTime _ ) As DateTime |
Parameters
- local
- Type: System..::..DateTime
The local time to convert.
Return Value
The UTC DateTime.
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | Thrown if the method failed due to missing platform support. |