Projects
Kolab:Winterfell
erlang-iso8601
0001-Erlang-R18-compatibility.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Erlang-R18-compatibility.patch of Package erlang-iso8601
From 9f62dce3e7c32239719b29995704b1296ddf5cb2 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Wed, 16 Mar 2016 16:25:58 +0100 Subject: [PATCH] Erlang R18 compatibility --- src/iso8601.erl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/iso8601.erl b/src/iso8601.erl index 42746c0..b814250 100644 --- a/src/iso8601.erl +++ b/src/iso8601.erl @@ -11,13 +11,13 @@ -define(MIDNIGHT, {0,0,0}). -define(V, proplists:get_value). --type datetime() :: tuple(Date::calendar:date(), - Time::calendar:time()). --type datetime_plist() :: list(tuple(atom(), integer())). +-type datetime() :: {Date::calendar:date(), + Time::calendar:time()}. +-type datetime_plist() :: list({atom(), integer()}). -type maybe(A) :: undefined | A. --type timestamp() :: tuple(MegaSecs::integer(), - Secs::integer(), - MicroSecs::integer() | float()). +-type timestamp() :: {MegaSecs::integer(), + Secs::integer(), + MicroSecs::integer() | float()}. %% API @@ -224,7 +224,7 @@ datetime(_, Plist) -> datetime(Plist). -spec make_date (datetime_plist()) - -> tuple(Date::calendar:date(), WeekOffsetH::non_neg_integer()). + -> {Date::calendar:date(), WeekOffsetH::non_neg_integer()}. %% @doc Return a `tuple' containing a date and, if the date is in week format, %% an offset in hours that can be applied to the date to adjust it to midnight %% of the day specified. If month format is used, the offset will be zero. @@ -237,7 +237,7 @@ make_date(Plist) -> maybe(pos_integer()), maybe(pos_integer()), datetime_plist()) - -> tuple(calendar:date(), non_neg_integer()). + -> {calendar:date(), non_neg_integer()}. %% @doc Return a `tuple' containing a date and - if the date is in week format %% (i.e., `Month' is undefined, `Week' is not) - an offset in hours that can be %% applied to the date to adjust it to midnight of the day specified. If month -- 2.5.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.