Kitto v0.9.1 Kitto.Time View Source

This module defines functions to handle time conversions.

Link to this section Summary

Functions

Return the number of milliseconds for the given arguments

Link to this section Functions

Link to this function mseconds(arg1) View Source
mseconds(tuple | atom) :: nil | non_neg_integer

Return the number of milliseconds for the given arguments.

When a tuple is passed the first element is interpreted as the number to be converted in milliseconds and the second element as the time unit to convert from.

An atom can also be used (one of [:second, :minute, :hour, :day]) for convenience.