package
1.3.9
Repository: https://github.com/ndau/ndaumath.git
Documentation: pkg.go.dev

# Functions

DurationFrom creates a Duration given a time.Duration object.
ParseDuration creates a duration from a duration string Allowable durations broadly follow the RFC3339 duration specification: `\dy\dm\dd(t\dh\dm\ds)`.
ParseNdau inverts n.String(): it converts a quantity of ndau expressed as a decimal number into a quantity of Ndau, without ever going through an intermediate floating-point step in which it may lose precision or behave nondeterministically.
ParseTimestamp creates a timestamp from an ISO-3933 string.
TimestampFrom creates a Timestamp given a time.Time object.

# Constants

Day is exactly 24 Hours.
Hour is exactly 60 Minutes.
Microsecond is a thousandth of a millisecond.
Millisecond is a thousandth of a second.
Minute is exactly 60 Seconds.
Month is exactly 30 Days.
Second is the duration of 9 192 631 770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom, per the 13th CGPM (1967).
Year is exactly 365 days.

# Type aliases

A Duration is the difference between two Timestamps.
Ndau is a value that holds a single amount of ndau.
A Timestamp is a single moment in time.