Namespace Scylla.Core.Util.Units
Structs
AreaUnit
Encapsulates an area, stored internally in square meters (m²), and provides properties that allow for conversions and interactions between multiple metric, imperial, land, nautical, and astronomical area units.
DataUnit
Encapsulates a data size, stored internally in bytes, and provides properties that allow for conversions and interactions between multiple standard and binary data size units.
LengthUnit
Encapsulates a length, stored internally in meters, and provides properties that allow for conversions and interactions between multiple metric, imperial, and astronomical distance units.
MassUnit
Encapsulates a mass, stored internally in kilograms (kg), and provides properties that allow for conversions and interactions between multiple metric, imperial, and troy mass units.
PressureUnit
Encapsulates a pressure, stored internally as a double in pascals (Pa), and provides
properties that allow lossless conversion to and from a comprehensive range of pressure units --
spanning SI sub-pascal prefixes (yoctopascal up to terapascal), the bar family (millibar, bar,
megabar), water- and mercury-column units, and imperial/gravimetric units such as psi, psf, ksi,
and kgf/cm².
SpeedUnit
Encapsulates a speed, stored internally in meters per second (m/s), and provides properties that allow for conversions and interactions between multiple metric, imperial, nautical, astronomical, and relativistic speed units.
TemperatureUnit
Encapsulates a temperature, stored internally in degrees Celsius (°C), and provides properties that allow for conversions and interactions between Kelvin (with metric prefixes), Fahrenheit, and Rankine.
TimeFormat
Defines a token-based formatting pattern used to render TimeUnit values as structured, human-readable strings such as clock displays, countdown timers, or custom duration labels.
TimeUnit
Encapsulates a duration, stored internally as a double in seconds, and provides
properties that allow lossless conversion to and from a comprehensive range of time units --
from Planck time (5.39 x 10^-44 s) up to millennia (10^9 s).