ConvertFromProjectTime Method


Converts project time to UTC time.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.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: System DateTime
The project time.

Remarks

Daylight savings time is not considered during this conversion.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException Thrown when the projectTime's kind is not Unspecified.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →