units

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package units provides basic unit constants that are used for various FHIR Quantity types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time int

Time is a unit of measure for measuring the passage of time.

const (
	// Nanoseconds is a Time unit that measures time in nanoseconds.
	Nanoseconds Time = iota

	// Microseconds is a Time unit that measures time in microseconds.
	Microseconds

	// Milliseconds is a Time unit that measures time in milliseconds.
	Milliseconds

	// Seconds is a Time unit that measures time in seconds.
	Seconds

	// Minutes is a Time unit that measures time in minutes.
	Minutes

	// Hours is a Time unit that measures time in hours.
	Hours

	// Days is a Time unit that measures time in days.
	Days
)

func TimeFromSymbol

func TimeFromSymbol(symbol string) (Time, error)

TimeFromSymbol creates the Time object

func (Time) Symbol

func (t Time) Symbol() string

Symbol returns the symbol used to represent the underlying unit.

func (Time) System

func (t Time) System() string

System returns the time system that this unit comes from.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL