Home

Duration

This is an implementation of schema.org Duration.

In Stencila Schema it is represented as a typed node because durations are commonly produced by execution, attached to metadata, and rendered in documents. Modeling them explicitly allows validation and serialization without losing the distinction between a duration and a timestamp.

See also temporal types such as Time and Timestamp.

Analogues

The following external types, elements, or nodes are similar to a Duration:

  • schema.org Duration

  • ISO 8601 duration: Close external duration analogue, though Stencila stores duration as numeric value plus explicit timeUnit rather than a single encoded string.

Properties

The Duration type has these properties:

NameDescriptionTypeInherited from
valueThe time difference in timeUnits.Integer-
timeUnitThe time unit that the value represents.TimeUnit-
idThe identifier for this item.StringEntity

Related

The Duration type is related to these types:

Bindings

The Duration type is represented in:


This documentation was generated from Duration.yaml by docs_types.rs.

© 2026 Stencila