Current section

Files

Jump to
gtempo src tempo@month.erl
Raw

src/tempo@month.erl

-module(tempo@month).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([to_short_string/1, to_long_string/1, from_short_string/1, from_long_string/1, from_string/1, to_int/1, from_int/1, days/2]).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 17).
-spec to_short_string(gleam@time@calendar:month()) -> binary().
to_short_string(Month) ->
tempo:month_to_short_string(Month).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 31).
-spec to_long_string(gleam@time@calendar:month()) -> binary().
to_long_string(Month) ->
tempo:month_to_long_string(Month).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 71).
-spec from_short_string(binary()) -> {ok, gleam@time@calendar:month()} |
{error, nil}.
from_short_string(Month) ->
tempo:month_from_short_string(Month).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 88).
-spec from_long_string(binary()) -> {ok, gleam@time@calendar:month()} |
{error, nil}.
from_long_string(Month) ->
tempo:month_from_long_string(Month).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 53).
-spec from_string(binary()) -> {ok, gleam@time@calendar:month()} | {error, nil}.
from_string(Month) ->
_pipe = from_short_string(Month),
gleam@result:try_recover(_pipe, fun(_) -> from_long_string(Month) end).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 102).
-spec to_int(gleam@time@calendar:month()) -> integer().
to_int(Month) ->
tempo:month_to_int(Month).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 120).
-spec from_int(integer()) -> {ok, gleam@time@calendar:month()} | {error, nil}.
from_int(Month) ->
tempo:month_from_int(Month).
-file("/home/john/Repos/tempo/src/tempo/month.gleam", 141).
-spec days(gleam@time@calendar:month(), integer()) -> integer().
days(Month, Year) ->
tempo:month_days_of(Month, Year).