View Source Pageantry.Prefs (Pageantry v0.6.0)

User preferences for paging/sorting/filtering.

Fields

  • tz : Time zone, eg "Etc/UTC" or "America/Los_Angeles".
  • weekstart : Day the week starts on, eg :sun or :mon.
  • now : Function that generates the current DateTime for testing. Defaults to &DateTime.now/1.

Summary

Types

t()

@type t() :: %Pageantry.Prefs{
  now: (String.t() -> {:ok, DateTime.t()}),
  tz: Calendar.time_zone(),
  weekstart: Timex.Types.weekstart()
}