Instants (RFC 3339) and duration protocol.

IDuration

Available since version 1.0 (view source)

PROTOCOL with method -milliseconds

An abstract type protocol for durations.

-milliseconds

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-milliseconds this instant before?)

Type signature:
  • (Any ⨯ IInstant ⨯ Boolean+) → (U Integer+ Decimal)

Returns number of milliseconds relative to given start instant. If before? is true, uses instant as an end instant. May return decimal.

See also: IDuration

IInstant

Available since version 1.0 (view source)

MARKER PROTOCOL

An abstract type protocol for instants. Note that calling dunaj.math/num on instant should return number of milliseconds from epoch, without time zone information.

IInstantFactory

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with method -instant

A factory protocol for instants.

See also: IInstant, instant

-instant

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-instant this years months days hours minutes seconds nanoseconds offset-sign offset-hours offset-minutes)

Type signature:
  • (IInstantFactory ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+ ⨯ Integer+) → IInstant

Returns a new instant object with given arguments.

See also: IInstantFactory