Canaryd.Duration (canaryd v0.2.0)

Copy Markdown View Source

Defines milliseconds as the internal time unit.

Convert a duration only when an external API uses another unit.

Summary

Functions

add(datetime, duration)

between(later, earlier)

days(value)

from_external(value, unit)

hours(value)

milliseconds(value)

minutes(value)

seconds(value)

to_external(value, unit)