Fork me 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

            
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
}