Please report issues and contribute improvements on GitHub!

Namespace org.accordproject.time

Found 2 declarations!

Download CTO Download UML Download JSON Schema Download Typescript Download Java Download Go Download XML Schema

Declared Types


import org.accordproject.time.TemporalUnit from https://models.accordproject.org/time.cto
import org.accordproject.time.Duration from https://models.accordproject.org/time.cto

Dependencies

  • None

Source

            
/** This model is deprecated, for Cicero 0.10 or later use v2.0/time.cto instead */

namespace org.accordproject.time

/**
 * Units for a duration.
 */
enum TemporalUnit {
  o seconds
  o minutes
  o hours
  o days
  o weeks
  o years
}

/**
 * A duration. For example, 6 hours.
 */
concept Duration {
  o Long amount
  o TemporalUnit unit
}