kitto v0.2.0 Kitto.Time

This module defines functions to handle time conversions.

Summary

Functions

Return the number of milliseconds for the given arguments

Functions

mseconds(arg1)

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.