Packages

A Swiss Army Knife for dealing with clock-related tasks

Retired package: Deprecated - define the behaviour in your app

Current section

Files

Jump to
one_piece_clock lib one_piece clock.ex
Raw

lib/one_piece/clock.ex

defmodule OnePiece.Clock do
@moduledoc """
Defines a Clock Behavior to deal with time dependency.
"""
@doc """
Returns the current UTC date time.
"""
@callback utc_now() :: DateTime.t()
end