ConvertFromProjectTime Method


Converts project time to UTC time.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public DateTime ConvertFromProjectTime(
	DateTime projectTime
)
Visual Basic
Public Function ConvertFromProjectTime ( _
	projectTime As DateTime _
) As DateTime
Visual C++
public:
DateTime ConvertFromProjectTime(
	DateTime projectTime
)

Parameters

projectTime
Type: SystemDateTime
The project time.

Remarks

Daylight savings time is not considered during this conversion.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Thrown when the projectTime's kind is not Unspecified.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →