View Source qdate (qdate v0.7.3)

Summary

Functions

Types

-type binary_or_string() :: binary() | string().
-type datetime() ::
    {{integer(), integer(), integer()}, {integer(), integer(), integer()}} |
    {{integer(), integer(), integer()}, {integer(), integer(), integer(), integer()}}.
-type disambiguate() :: prefer_standard | prefer_daylight | both.
-type erlnow() :: {integer(), integer(), integer()}.
-type qdate() :: any().
-type unit() ::
    second | seconds | minute | minutes | hour | hours | day | days | week | weeks | month |
    months | year | years.

Functions

Link to this function

add_minutes(Minutes, Date)

View Source
Link to this function

add_months(Months, Date)

View Source
Link to this function

add_seconds(Seconds, Date)

View Source
Link to this function

add_unit(Unit, Value, Date)

View Source
-spec add_unit(Unit :: unit(), Value :: integer(), Date :: qdate()) -> qdate().
Link to this function

beginning_week(BeginningDayOfWeek, Date)

View Source
Link to this function

between(A, Op1, Date, Op2, B)

View Source
-spec compare(A :: qdate(), B :: qdate()) -> integer().
-spec compare(A :: qdate(), Op :: atom(), B :: qdate()) -> boolean().
Link to this function

end_week(BeginningDayOfWeek, Date)

View Source
Link to this function

parse_relative(Relation)

View Source
Link to this function

range(_, Interval, Start, Finish)

View Source
Link to this function

range_days(Interval, Start, Finish)

View Source
Link to this function

range_hours(Interval, Start, Finish)

View Source
Link to this function

range_minutes(Interval, Start, Finish)

View Source
Link to this function

range_months(Interval, Start, Finish)

View Source
Link to this function

range_seconds(Interval, Start, Finish)

View Source
Link to this function

range_weeks(Interval, Start, Finish)

View Source
Link to this function

range_years(Interval, Start, Finish)

View Source
Link to this function

register_format(Key, Format)

View Source
Link to this function

register_parser(Key, Parser)

View Source
Link to this function

to_date(ToTZ, Disambiguate, RawDate)

View Source
-spec to_date(ToTZ :: any(), Disambiguate :: disambiguate(), RawDate :: any()) ->
           {ambiguous, datetime(), datetime()} | datetime().
-spec to_now(Disamb :: disambiguate(), qdate()) -> erlnow() | {ambiguous, erlnow(), erlnow()}.
Link to this function

to_string(Format, ToTZ, Date)

View Source
Link to this function

to_string(Format, ToTZ, Disambiguate, Date)

View Source
-spec to_string(Format :: any(), ToTZ :: any(), Disambiguate :: disambiguate(), Date :: qdate()) ->
             binary_or_string() | {ambiguous, binary_or_string(), binary_or_string()}.
Link to this function

to_unixtime(Disamb, Unixtime)

View Source
-spec to_unixtime(Disamb :: disambiguate(), qdate()) -> {ambiguous, integer(), integer()} | integer().
Link to this function

tz_preserve_ms_false_test_()

View Source
Link to this function

tz_preserve_ms_true_test_()

View Source