GPL removed
This commit is contained in:
parent
66468690b6
commit
9caa2b2a0b
6 changed files with 23 additions and 58 deletions
8
COPYING
8
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.
|
||||
|
|
18
README.md
18
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}
|
||||
|
|
|
@ -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 <dmitryme@gmail.com>").
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
%% @author Dmitry S. Melnikov (dmitryme@gmail.com)
|
||||
%% @copyright 2010 Dmitry S. Melnikov
|
||||
|
||||
-module(ibuild).
|
||||
|
||||
-export([build_index/0, main/1]).
|
||||
|
|
|
@ -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 <dmitryme@gmail.com>").
|
||||
|
|
|
@ -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).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue