Revit 2026 API
Site |
Converts project time to UTC time.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public DateTime ConvertFromProjectTime( DateTime projectTime )
Public Function ConvertFromProjectTime ( projectTime As DateTime ) As DateTime
public: DateTime ConvertFromProjectTime( DateTime projectTime )
member ConvertFromProjectTime : projectTime : DateTime -> DateTime
Parameters
- projectTime DateTime
- The project time.
Return Value
DateTime| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the projectTime's kind is not Unspecified. |
Daylight savings time is not considered during this conversion.
See Also