From 9caa2b2a0b8d5665ba8939552dec866bde9446f6 Mon Sep 17 00:00:00 2001 From: "Dmitry S. Melnikov" Date: Fri, 7 Mar 2014 10:08:12 +0400 Subject: [PATCH] GPL removed --- COPYING | 8 ++++---- README.md | 18 +++++++++--------- include/tz_database.hrl | 17 ++--------------- src/ibuild.erl | 3 +++ src/localtime.erl | 18 +++--------------- src/localtime_dst.erl | 17 ++--------------- 6 files changed, 23 insertions(+), 58 deletions(-) diff --git a/COPYING b/COPYING index 0fd0215..b360273 100644 --- a/COPYING +++ b/COPYING @@ -13,8 +13,8 @@ the following conditions are met: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index f1b29f4..8286bb0 100644 --- a/README.md +++ b/README.md @@ -16,38 +16,38 @@ is not in daylight saving, it will be corrected by library and "MSK" -> "PST" co Converts UTC time to local one >localtime:utc_to_local({{2010, 7, 22}, {17, 56, 23}, "Europe/Moscow"). -> +> >{{2010,10,10},{21,56,23}} Converts local time to UTC one >localtime:local_to_utc({{2010, 10, 10}, {21, 56, 23}}, "Europe/Moscow"). -> +> >{{2010,10,10},{17,56,23}} Converts time from one local timezone to another local one >localtime:local_to_local({{2010, 10, 10}, {21, 56, 23}}, "Europe/Moscow", "Australia/Sydney"). -> ->{{2010,10,11},{3,56,23}} +> +>{{2010,10,11},{3,56,23}} Returns timezone name >localtime:tz_name({{2010, 10, 10}, {21, 56, 23}}, "Europe/Moscow"). -> +> >{"MSK","MSK"} >localtime:tz_name({{2010,10,11},{3,56,23}}, "Australia/Sydney"). -> +> >{"EST","EST"} Calculates time difference between UTC and local one >localtime:tz_shift({{2013, 01, 22}, {18, 17, 00}}, "Europe/Moscow"). -> +> >{'+',4,0} >localtime:tz_shift({{2013, 01, 22}, {18, 17, 00}}, "America/New York"). -> +> >{'-',5,0} Calculates time difference between two local timezones >localtime:tz_shift({{2013, 01, 22}, {18, 17, 00}}, "America/New York", "Europe/Moscow"). -> +> >{'+',9,0} diff --git a/include/tz_database.hrl b/include/tz_database.hrl index 7136193..ce242d5 100644 --- a/include/tz_database.hrl +++ b/include/tz_database.hrl @@ -1,18 +1,5 @@ -%% Copyright (C) 07/01/2010 Dmitry S. Melnikov (dmitryme@gmail.com) -%% -%% This program is free software; you can redistribute it and/or -%% modify it under the terms of the GNU General Public License -%% as published by the Free Software Foundation; either version 2 -%% of the License, or (at your option) any later version. -%% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. -%% -%% You should have received a copy of the GNU General Public License -%% along with this program; if not, write to the Free Software -%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +%% @author Dmitry S. Melnikov (dmitryme@gmail.com) +%% @copyright 2010 Dmitry S. Melnikov -author("Dmitry Melnikov "). diff --git a/src/ibuild.erl b/src/ibuild.erl index 3334c1d..92cf709 100755 --- a/src/ibuild.erl +++ b/src/ibuild.erl @@ -1,3 +1,6 @@ +%% @author Dmitry S. Melnikov (dmitryme@gmail.com) +%% @copyright 2010 Dmitry S. Melnikov + -module(ibuild). -export([build_index/0, main/1]). diff --git a/src/localtime.erl b/src/localtime.erl index 627e29f..42781e3 100644 --- a/src/localtime.erl +++ b/src/localtime.erl @@ -1,18 +1,6 @@ -%% Copyright (C) 07/01/2010 Dmitry S. Melnikov (dmitryme@gmail.com) -%% -%% This program is free software; you can redistribute it and/or -%% modify it under the terms of the GNU General Public License -%% as published by the Free Software Foundation; either version 2 -%% of the License, or (at your option) any later version. -%% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. -%% -%% You should have received a copy of the GNU General Public License -%% along with this program; if not, write to the Free Software -%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +%% @author Dmitry S. Melnikov (dmitryme@gmail.com) +%% @copyright 2010 Dmitry S. Melnikov + -module(localtime). -author("Dmitry Melnikov "). diff --git a/src/localtime_dst.erl b/src/localtime_dst.erl index 5b6a70c..4c0cb37 100644 --- a/src/localtime_dst.erl +++ b/src/localtime_dst.erl @@ -1,18 +1,5 @@ -%% Copyright (C) 07/01/2010 Dmitry S. Melnikov (dmitryme@gmail.com) -%% -%% This program is free software; you can redistribute it and/or -%% modify it under the terms of the GNU General Public License -%% as published by the Free Software Foundation; either version 2 -%% of the License, or (at your option) any later version. -%% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. -%% -%% You should have received a copy of the GNU General Public License -%% along with this program; if not, write to the Free Software -%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +%% @author Dmitry S. Melnikov (dmitryme@gmail.com) +%% @copyright 2010 Dmitry S. Melnikov -module(localtime_dst).