module Units::Registry

Defined in:

registry.cr

Constant Summary

ALL = [{singular: "foot", names: ["feet", "ft"], value: 0.3048}, {singular: "yard", names: ["yards", "yd"], value: 0.9144}, {singular: "inch", names: ["inches", "in"], value: 0.0254}, {singular: "meter", names: ["meters", "m"], value: 1_f64}, {singular: "minute", names: ["minutes", "min"], value: 60_f64}, {singular: "hour", names: ["hours", "hr"], value: 3600_f64}, {singular: "day", names: ["days"], value: 86400_f64}, {singular: "year", names: ["years", "yr"], value: 31558100_f64}, {singular: "second", names: ["seconds", "s"], value: 1_f64}]
ALL_DERIVED = [{singular: "foot", names: ["feet", "ft"], value: 0.3048}, {singular: "yard", names: ["yards", "yd"], value: 0.9144}, {singular: "inch", names: ["inches", "in"], value: 0.0254}, {singular: "minute", names: ["minutes", "min"], value: 60_f64}, {singular: "hour", names: ["hours", "hr"], value: 3600_f64}, {singular: "day", names: ["days"], value: 86400_f64}, {singular: "year", names: ["years", "yr"], value: 31558100_f64}]
DERIVED_DURATIONS = [{singular: "minute", names: ["minutes", "min"], value: 60_f64}, {singular: "hour", names: ["hours", "hr"], value: 3600_f64}, {singular: "day", names: ["days"], value: 86400_f64}, {singular: "year", names: ["years", "yr"], value: 31558100_f64}] of UnitDefinition
DERIVED_LENGTHS = [{singular: "foot", names: ["feet", "ft"], value: 0.3048}, {singular: "yard", names: ["yards", "yd"], value: 0.9144}, {singular: "inch", names: ["inches", "in"], value: 0.0254}] of UnitDefinition
DURATIONS = [{singular: "minute", names: ["minutes", "min"], value: 60_f64}, {singular: "hour", names: ["hours", "hr"], value: 3600_f64}, {singular: "day", names: ["days"], value: 86400_f64}, {singular: "year", names: ["years", "yr"], value: 31558100_f64}, {singular: "second", names: ["seconds", "s"], value: 1_f64}]
LENGTHS = [{singular: "foot", names: ["feet", "ft"], value: 0.3048}, {singular: "yard", names: ["yards", "yd"], value: 0.9144}, {singular: "inch", names: ["inches", "in"], value: 0.0254}, {singular: "meter", names: ["meters", "m"], value: 1_f64}]