Home

Time

This is an implementation of schema.org Time.

In Stencila Schema it is represented as a typed node so recurring times of day can be distinguished from dates, durations, and timestamps across metadata and executable workflows.

See also Date, DateTime, Duration, and Timestamp.

Analogues

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

  • schema.org Time

  • JATS <time>: Close JATS analogue for structured time values.

Properties

The Time type has these properties:

NameDescriptionTypeInherited from
valueThe time of day as a string in format hh:mm:ss[Z|(+|-)hh:mm].String-
idThe identifier for this item.StringEntity

Related

The Time type is related to these types:

Bindings

The Time type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the Time type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
valueMin+Generate a fixed date-time string.String::from("2022-02-22T22:22:22")
Low+Generate a random date-time string.Regex [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9]+([+-][0-2][0-9]:[0-5][0-9]|Z)
High+Generate a random string of up to 20 alphanumeric characters, colons & hyphens.Regex [a-zA-Z0-9\-:]{1,20}
MaxGenerate an arbitrary string.String::arbitrary()

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

© 2026 Stencila