duration

Creates a duration.

Target type

Signature

1duration(time) or duration(-year= ?, -week= ?, -day= ?, -hour= ?, -minute= ?, -second= ?)

Creates a duration.

duration constructs or identifies a LaiRu value type. duration handles calendar, duration, or formatting behavior. Store values in structured date or duration form and format them only when presenting text.

Parameters

time
Required value. Supply time positionally unless the signature shows a keyword form.

Examples

Basic call

1duration(-day=1, -hour=2)
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.