IFC 4.3.0.1 (IFC4X3) development

# 8.5.2.3 IfcDateTime

## 8.5.2.3.1 Semantic definition

The IfcDateTime identifies a particular point in time, expressed by hours, minutes and optional seconds elapsed within a calendar day, expressed by year, calendar month and day in month. It is expressed by a string value following a particular lexical representation.

This lexical representation for IfcDateTime is YYYY-MM-DDThh:mm:ss where "YYYY" represent the year, "MM" the month and "DD" the day, preceded by an optional leading "-" sign to indicate a negative year number. If the sign is omitted, "+" is assumed. The letter "T" is the date/time separator and "hh", "mm", "ss" represent hour, minute and second respectively. Additional digits can be used to increase the precision of fractional seconds if desired i.e the format ss.ss... with any number of digits after the decimal point is supported. The fractional seconds part is optional; other parts of the lexical form are not optional. To accommodate year values greater than 9999 additional digits can be added to the left of this representation. Leading zeros are required if the year value would otherwise have fewer than four digits; otherwise they are forbidden. The year 0000 is prohibited.

## 8.5.2.3.2 Formal representation

TYPE IfcDateTime = STRING;
END_TYPE;