Nokome Bentley1 min read

Time

A point in time recurring on multiple days.

Properties

The Time type has these properties:

Name Description Type Inherited from JSON-LD @id Aliases
id The identifier for this item. String Entity schema:id -
value The time of day as a string in format hh:mm:ss[Z|(+|-)hh:mm]. String - schema:value -

Related

The Time type is related to these types:

Formats

The Time type can be encoded (serialized) to, and/or decoded (deserialized) from, these formats:

Format Encoding Decoding Support Notes
DOM HTML 🟢 No loss
HTML 🔷 Low loss
JATS 🟢 No loss 🟢 No loss Encoded as <time> using special function
Markdown ⚠️ High loss
Stencila Markdown ⚠️ High loss
Quarto Markdown ⚠️ High loss
MyST Markdown ⚠️ High loss
LLM Markdown ⚠️ High loss
LaTeX 🔷 Low loss 🔷 Low loss
PDF 🔷 Low loss
Plain text ⚠️ High loss
IPYNB 🔷 Low loss 🔷 Low loss
Microsoft Word DOCX 🔷 Low loss 🔷 Low loss
OpenDocument ODT 🔷 Low loss 🔷 Low loss
TeX 🔷 Low loss 🔷 Low loss
JSON 🟢 No loss 🟢 No loss
JSON+Zip 🟢 No loss 🟢 No loss
JSON5 🟢 No loss 🟢 No loss
JSON-LD 🟢 No loss 🟢 No loss
CBOR 🟢 No loss 🟢 No loss
CBOR+Zstandard 🟢 No loss 🟢 No loss
YAML 🟢 No loss 🟢 No loss
Lexical JSON 🔷 Low loss 🔷 Low loss
Koenig JSON 🔷 Low loss 🔷 Low loss
Pandoc AST 🔷 Low loss 🔷 Low loss
Directory
Stencila Web Bundle
Debug 🔷 Low loss

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 for each complexity level. Any optional properties that are not in this table are set to None.

Property Complexity Description Strategy
value Min+ 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}
Max Generate an arbitrary string. String::arbitrary()

Source

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