Packages

An Elixir Log Wrapper allows Maps and Strings to be passed to the Elixir Logger, along with that it will ouput to JSON.

Current section

Files

Jump to
stump lib stump time mock_time.ex
Raw

lib/stump/time/mock_time.ex

defmodule Stump.Time.MockTime do
@moduledoc false
@doc """
This function won't be listed in docs.
"""
@behaviour Stump.Time
def utc_now() do
# It's always 1st March 2019
DateTime.from_unix!(01_551_398_400) |> DateTime.to_iso8601()
end
end