pub fn create_time_period(
tx: &mut Transaction,
start_time: &str,
end_time: &str,
) -> ScheduleAuthoringResult<EntityId>Expand description
Stage an IfcTimePeriod: a start and end time of day.
Place it in a pattern with RecurrenceDraft::time_periods.
Takes no model, so it is for IFC4 and IFC4X3 only; create_time_period_in
checks the model’s release.
Both slots are IfcTime, a time of day rather than a timestamp,
and both are required. The values are written as given for the
same reason IfcTaskTime does not parse its durations: the codec
round-trips text, and reinterpreting it here would lose whatever
the authoring tool meant by it.
§Errors
Refuses a blank start or end.