BlogEngine.Clock behaviour (blog_engine v0.1.0)

Copy Markdown View Source

Provides context-selected UTC time for deterministic BlogEngine operations.

Summary

Functions

Returns UTC time from the clock configured on the supplied context.

Callbacks

utc_now()

@callback utc_now() :: DateTime.t()

Functions

utc_now(context)

@spec utc_now(BlogEngine.Context.t()) :: DateTime.t()

Returns UTC time from the clock configured on the supplied context.