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 system_clock.ex
Raw

lib/one_piece/clock/system_clock.ex

defmodule OnePiece.Clock.SystemClock do
@moduledoc """
Implements the Clock Behavior using the System clock.
"""
@behaviour OnePiece.Clock
@impl OnePiece.Clock
def utc_now do
DateTime.utc_now()
end
end