WIP fix IFC2X3 errors in classification refactor

This commit is contained in:
Dion Moult
2021-01-22 16:55:38 +11:00
parent c67a99fb5d
commit 3bbdc3f277
5 changed files with 35 additions and 17 deletions
@@ -35,6 +35,8 @@ def ifc2datetime(element):
def datetime2ifc(dt, ifc_type):
if isinstance(dt, str):
dt = datetime.fromisoformat(dt)
if ifc_type == "IfcTimeStamp":
return int(dt.timestamp())
elif ifc_type == "IfcDateTime":