Time unit of the duration.
Numeric amount of the duration.
Calculate the end time by adding this duration to a start time, respecting working hours.
Serialize to a plain object.
Format as a display string (e.g. '5d', '2w', '1M').
StaticfromStaticgetCalculate the duration between two dates in the specified unit, respecting working hours.
StaticparseStatictryParse a length string (e.g. '5d', '2w', '1M'). Returns null if invalid.
Represents a task duration with a time unit.