dateutilx 0.0.1__tar.gz → 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. dateutilx-0.1.0/.gitignore +33 -0
  2. dateutilx-0.1.0/AUTHORS.md +136 -0
  3. dateutilx-0.1.0/LICENSE +54 -0
  4. dateutilx-0.1.0/PKG-INFO +241 -0
  5. dateutilx-0.1.0/README.rst +159 -0
  6. dateutilx-0.1.0/pyproject.toml +63 -0
  7. dateutilx-0.1.0/src/dateutil/__init__.py +5 -0
  8. dateutilx-0.1.0/src/dateutilx/__init__.py +21 -0
  9. dateutilx-0.1.0/src/dateutilx/easter.py +93 -0
  10. dateutilx-0.1.0/src/dateutilx/errors.py +25 -0
  11. dateutilx-0.1.0/src/dateutilx/helper/__init__.py +1 -0
  12. dateutilx-0.1.0/src/dateutilx/helper/constants.py +67 -0
  13. dateutilx-0.1.0/src/dateutilx/info.py +9 -0
  14. dateutilx-0.1.0/src/dateutilx/parser/__init__.py +53 -0
  15. dateutilx-0.1.0/src/dateutilx/parser/_parser.py +1552 -0
  16. dateutilx-0.1.0/src/dateutilx/parser/isoparser.py +411 -0
  17. dateutilx-0.1.0/src/dateutilx/parser/utils.py +78 -0
  18. dateutilx-0.1.0/src/dateutilx/relativedelta.py +604 -0
  19. dateutilx-0.1.0/src/dateutilx/rrule.py +1647 -0
  20. dateutilx-0.1.0/src/dateutilx/tz/__init__.py +36 -0
  21. dateutilx-0.1.0/src/dateutilx/tz/_common.py +278 -0
  22. dateutilx-0.1.0/src/dateutilx/tz/_factories.py +67 -0
  23. dateutilx-0.1.0/src/dateutilx/tz/_win.py +359 -0
  24. dateutilx-0.1.0/src/dateutilx/tz/tz.py +1698 -0
  25. dateutilx-0.1.0/src/dateutilx/tz/win.py +15 -0
  26. dateutilx-0.1.0/src/dateutilx/tzwin.py +4 -0
  27. dateutilx-0.1.0/src/dateutilx/utils.py +65 -0
  28. dateutilx-0.1.0/src/dateutilx/weekday.py +42 -0
  29. dateutilx-0.0.1/LICENSE +0 -21
  30. dateutilx-0.0.1/PKG-INFO +0 -61
  31. dateutilx-0.0.1/README.md +0 -35
  32. dateutilx-0.0.1/dateutilx.egg-info/PKG-INFO +0 -61
  33. dateutilx-0.0.1/dateutilx.egg-info/SOURCES.txt +0 -9
  34. dateutilx-0.0.1/dateutilx.egg-info/dependency_links.txt +0 -1
  35. dateutilx-0.0.1/dateutilx.egg-info/requires.txt +0 -5
  36. dateutilx-0.0.1/dateutilx.egg-info/top_level.txt +0 -1
  37. dateutilx-0.0.1/pyproject.toml +0 -42
  38. dateutilx-0.0.1/setup.cfg +0 -4
  39. dateutilx-0.0.1/src/__init__.py +0 -5
@@ -0,0 +1,33 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+
5
+
6
+ # Build detritus
7
+ build/
8
+ dist/
9
+ .eggs
10
+ *.egg-info/
11
+
12
+ # Test detritus
13
+ .tox/
14
+ .pytest_cache/
15
+ venv/
16
+ .venv/
17
+ .hypothesis/
18
+ .coverage
19
+
20
+ # Autogenerated version information
21
+ src/dateutilx/_version.py
22
+
23
+ # Sphinx documentation
24
+ docs/_build/
25
+ docs/docs_venv
26
+
27
+ # Timezone information
28
+ tzdata*.tar.gz
29
+
30
+ .idea
31
+ .cache
32
+ .mypy_cache
33
+ yuhi*
@@ -0,0 +1,136 @@
1
+ This is a (possibly incomplete) list of all the contributors to python-dateutil,
2
+ initially generated from the git author metadata. The details of their specific
3
+ contributions can be found in the git history.
4
+
5
+ Prior to 2017-12-01, the library was licensed solely under the BSD 3-clause
6
+ license, all contributions on or after 2017-12-01 are dual-licensed between
7
+ Apache 2.0 and BSD 3-clause. In the list below, anyone whose name is marked with
8
+ **R** has agreed to re-license their previously submitted code under Apache 2.0.
9
+ Anyone whose name is marked with a **D** has only made contributions since the
10
+ switch, and thus all their contributions are dual-licensed.
11
+
12
+ ## Contributors (alphabetical order)
13
+
14
+ - Aarni Koskela <akx@iki.fi> **D**
15
+ - Adam Chainz <adam@MASKED>
16
+ - Adrien Cossa <cossa@MASKED>
17
+ - Alec Nikolas Reiter <alecreiter@MASKED>
18
+ - Alec Reiter <areiter@MASKED>
19
+ - Aleksei Strizhak <alexei.mifrill.strizhak@MASKED> (gh: @Mifrill)
20
+ - Alex Chamberlain (gh: @alexchamberlain) **D**
21
+ - Alex Verdyan <verdyan@MASKED>
22
+ - Alex Willmer <alex@moreati.org.uk> (gh: @moreati) **R**
23
+ - Alexander Brugh <alexander.brugh@MASKED> (gh: @abrugh)
24
+ - Alexander Shadchin <alexandr.shadchin@gmail.com> (gh: @shadchin) **D**
25
+ - Alistair McMaster <alistair@MASKED> (gh: @alimcmaster1 ) **D**
26
+ - Allison Quinlan <aquinlan82@gmail.com> (gh: @aquinlan) **D**
27
+ - Andrew Bennett (gh: @andrewcbennett) **D**
28
+ - Andrew Murray <radarhere@MASKED>
29
+ - Arclight <arclight@MASKED> (gh: @arclightslavik)
30
+ - Aritro Nandi <gurgenz221@gmail.com> (gh: @gurgenz221) **D**
31
+ - Bernat Gabor <bgabor8@bloomberg.net> (gh: @gaborbernat) **D**
32
+ - Bradlee Speice <bradlee@speice.io> (gh: @bspeice) **D**
33
+ - Brandon W Maister <quodlibetor@MASKED>
34
+ - Brock Mendel <jbrockmendel@MASKED> (gh: @jbrockmendel) **R**
35
+ - Brook Li (gh: @absreim) **D**
36
+ - Carlos <carlosxl@MASKED>
37
+ - Cheuk Ting Ho <cheukting.ho@gmail.com> (gh: @cheukting) **D**
38
+ - Chris van den Berg (gh: bergvca) **D**
39
+ - Christopher Cordero <ccordero@pm.me> (gh: cs-cordero) **D**
40
+ - Christopher Corley <cscorley@MASKED>
41
+ - Claudio Canepa <ccanepacc@MASKED>
42
+ - Corey Girard <corey.r.girard@gmail.com> (gh: @coreygirard) **D**
43
+ - Cosimo Lupo <cosimo@anthrotype.com> (gh: @anthrotype) **D**
44
+ - Daniel Lemm (gh: @ffe4) **D**
45
+ - Daniel Lepage <dplepage@MASKED>
46
+ - David Lehrian <david@MASKED>
47
+ - Dean Allsopp (gh: @daplantagenet) **D**
48
+ - Dominik Kozaczko <dominik@MASKED>
49
+ - Elliot Hughes <elliot.hughes@gmail.com> (gh: @ElliotJH) **D**
50
+ - Elvis Pranskevichus <el@MASKED>
51
+ - Fan Huang <fanhuang.scb@gmail.com>(gh: @fhuang5) **D**
52
+ - Florian Rathgeber (gh: @kynan) **D**
53
+ - Gabriel Bianconi <gabriel@MASKED> (gh: @GabrielBianconi) **D**
54
+ - Gabriel Poesia <gabriel.poesia@MASKED>
55
+ - Gökçen Nurlu <gnurlu1@bloomberg.net> (gh: @gokcennurlu) **D**
56
+ - Grant Garrett-Grossman <grantlycee@gmail.com> (gh: @FakeNameSE) **D**
57
+ - Gustavo Niemeyer <gustavo@niemeyer.net> (gh: @niemeyer)
58
+ - Holger Joukl <holger.joukl@MASKED> (gh: @hjoukl)
59
+ - Hugo van Kemenade (gh: @hugovk) **D**
60
+ - Igor <mrigor83@MASKED>
61
+ - Ionuț Ciocîrlan <jdxlark@MASKED>
62
+ - Jacqueline Chen <jacqueline415@outlook.com> (gh: @jachen20) **D**
63
+ - Jake Chorley (gh: @jakec-github) **D**
64
+ - Jakub Kulík (gh: @kulikjak) **D**
65
+ - Jan Studený <jendas1@MASKED>
66
+ - Jay Weisskopf <jay@jayschwa.net> (gh: @jayschwa) **D**
67
+ - Jitesh <jitesh@MASKED>
68
+ - John Purviance <jpurviance@MASKED> (gh @jpurviance) **D**
69
+ - Jon Dufresne <jon.dufresne@MASKED> (gh: @jdufresne) **R**
70
+ - Jonas Neubert <jonas@MASKED> (gh: @jonemo) **R**
71
+ - Juan Arias <jdarias3@gmail.com> (gh: @jdarias3) **D**
72
+ - Kevin Nguyen <kvn219@MASKED> **D**
73
+ - Kirit Thadaka <kirit.thadaka@gmail.com> (gh: @kirit93) **D**
74
+ - Kubilay Kocak <koobs@MASKED>
75
+ - Laszlo Kiss Kollar <kiss.kollar.laszlo@MASKED> (gh: @lkollar) **D**
76
+ - Lauren Oldja <oldja@MASKED> (gh: @loldja) **D**
77
+ - Luca Ferocino <luca.ferox@MASKED> (gh: @lucaferocino) **D**
78
+ - Mario Corchero <mcorcherojim@MASKED> (gh: @mariocj89) **R**
79
+ - Mark Bailey <msb@MASKED> **D**
80
+ - Mateusz Dziedzic (gh: @m-dz) **D**
81
+ - Matt Cooper <vtbassmatt@MASKED> (gh: @vtbassmatt) **D**
82
+ - Matthew Schinckel <matt@MASKED>
83
+ - Max Shenfield <shenfieldmax@MASKED>
84
+ - Maxime Lorant <maxime.lorant@MASKED>
85
+ - Michael Aquilina <michaelaquilina@MASKED> (gh: @MichaelAquilina)
86
+ - Michael J. Schultz <mjschultz@MASKED>
87
+ - Michael Käufl (gh: @michael-k)
88
+ - Mike Gilbert <floppym@MASKED>
89
+ - Nicholas Herrriot <Nicholas.Herriot@gmail.com> **D**
90
+ - Nicolas Évrard (gh: @nicoe) **D**
91
+ - Nick Smith <nick.smith@MASKED>
92
+ - Orson Adams <orson.network@MASKED> (gh: @parsethis) **D**
93
+ - Paul Brown (gh: @pawl) **D**
94
+ - Paul Dickson (gh @prdickson) **D**
95
+ - Paul Ganssle <paul@ganssle.io> (gh: @pganssle) **R**
96
+ - Pascal van Kooten <kootenpv@MASKED> (gh: @kootenpv) **R**
97
+ - Pavel Ponomarev <comrad.awsum@MASKED>
98
+ - Peter Bieringer <pb@MASKED>
99
+ - Pierre Gergondet <pierre.gergondet@MASKED> (gh: @gergondet) **D**
100
+ - Quentin Pradet <quentin@MASKED>
101
+ - Raymond Cha (gh: @weatherpattern) **D**
102
+ - Ridhi Mahajan <ridhikmahajan@MASKED> **D**
103
+ - Robin Henriksson Törnström <gh: @MrRawbin> **D**
104
+ - Rowan Walsh (gh: @rowan-walsh) **D**
105
+ - Roy Williams <rwilliams@MASKED>
106
+ - Rustem Saiargaliev (gh: @amureki) **D**
107
+ - Satyabrat Bhol <satyabrat35@MASKED> (gh: @Satyabrat35) **D**
108
+ - Savraj <savraj@MASKED>
109
+ - Sergey Vishnikin <armicron@MASKED>
110
+ - Sherry Zhou (gh: @cssherry) **D**
111
+ - Siping Meng (gh: @smeng10) **D**
112
+ - Stefan Bonchev **D**
113
+ - Thierry Bastian <thierryb@MASKED>
114
+ - Thomas A Caswell <tcaswell@MASKED> (gh: @tacaswell) **R**
115
+ - Thomas Achtemichuk <tom@MASKED>
116
+ - Thomas Grainger <tagrain@gmail.com> (gh: @graingert) **D**
117
+ - Thomas Kluyver <takowl@MASKED> (gh: @takluyver)
118
+ - Tim Gates <tim.gates@iress.com> (gh: timgates42)
119
+ - Tomasz Kluczkowski (gh: @Tomasz-Kluczkowski) **D**
120
+ - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
121
+ - Unrud <Unrud@MASKED> (gh: @unrud)
122
+ - Xavier Lapointe <lapointe.xavier@MASKED> (gh: @lapointexavier) **D**
123
+ - X O <xo@MASKED>
124
+ - Yaron de Leeuw <me@jarondl.net> (gh: @jarondl)
125
+ - Yoney <alper_yoney@hotmail.com> **D**
126
+ - Yuan Huang <huangy22@gmail.com> (gh: @huangy22) **D**
127
+ - Zbigniew Jędrzejewski-Szmek <zbyszek@MASKED>
128
+ - bachmann <bachmann.matt@MASKED>
129
+ - bjv <brandon.vanvaerenbergh@MASKED> (@bjamesvERT)
130
+ - gl <gl@MASKED>
131
+ - gfyoung <gfyoung17@gmail.com> **D**
132
+ - Labrys <labrys.git@gmail.com> (gh: @labrys) **R**
133
+ - ms-boom <ms-boom@MASKED>
134
+ - ryanss <ryanssdev@MASKED> (gh: @ryanss) **R**
135
+
136
+ Unless someone has deliberately given permission to publish their e-mail, I have masked the domain names. If you are not on this list and believe you should be, or you *are* on this list and your information is inaccurate, please e-mail the current maintainer or the mailing list (dateutil@python.org) with your name, e-mail (if desired) and GitHub (if desired / applicable), as you would like them displayed. Additionally, please indicate if you are willing to dual license your old contributions under Apache 2.0.
@@ -0,0 +1,54 @@
1
+ Copyright 2017- Paul Ganssle <paul@ganssle.io>
2
+ Copyright 2017- dateutil contributors (see AUTHORS file)
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ The above license applies to all contributions after 2017-12-01, as well as
17
+ all contributions that have been re-licensed (see AUTHORS file for the list of
18
+ contributors who have re-licensed their code).
19
+ --------------------------------------------------------------------------------
20
+ dateutil - Extensions to the standard Python datetime module.
21
+
22
+ Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
23
+ Copyright (c) 2012-2014 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
24
+ Copyright (c) 2014-2016 - Yaron de Leeuw <me@jarondl.net>
25
+ Copyright (c) 2015- - Paul Ganssle <paul@ganssle.io>
26
+ Copyright (c) 2015- - dateutil contributors (see AUTHORS file)
27
+
28
+ All rights reserved.
29
+
30
+ Redistribution and use in source and binary forms, with or without
31
+ modification, are permitted provided that the following conditions are met:
32
+
33
+ * Redistributions of source code must retain the above copyright notice,
34
+ this list of conditions and the following disclaimer.
35
+ * Redistributions in binary form must reproduce the above copyright notice,
36
+ this list of conditions and the following disclaimer in the documentation
37
+ and/or other materials provided with the distribution.
38
+ * Neither the name of the copyright holder nor the names of its
39
+ contributors may be used to endorse or promote products derived from
40
+ this software without specific prior written permission.
41
+
42
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
43
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
44
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
45
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
46
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
47
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
48
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
49
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
50
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
51
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
52
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53
+
54
+ The above BSD License Applies to all code, even that also covered by Apache 2.0.
@@ -0,0 +1,241 @@
1
+ Metadata-Version: 2.4
2
+ Name: dateutilx
3
+ Version: 0.1.0
4
+ Summary: Modern extension to the standard Python datetime module
5
+ Project-URL: Homepage, https://github.com/rsb-23/dateutilx
6
+ Project-URL: Documentation, https://dateutil.readthedocs.io/en/stable/
7
+ Project-URL: Source, https://github.com/rsb-23/dateutilx
8
+ Author: Rishabh B
9
+ License: Copyright 2017- Paul Ganssle <paul@ganssle.io>
10
+ Copyright 2017- dateutil contributors (see AUTHORS file)
11
+
12
+ Licensed under the Apache License, Version 2.0 (the "License");
13
+ you may not use this file except in compliance with the License.
14
+ You may obtain a copy of the License at
15
+
16
+ http://www.apache.org/licenses/LICENSE-2.0
17
+
18
+ Unless required by applicable law or agreed to in writing, software
19
+ distributed under the License is distributed on an "AS IS" BASIS,
20
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ See the License for the specific language governing permissions and
22
+ limitations under the License.
23
+
24
+ The above license applies to all contributions after 2017-12-01, as well as
25
+ all contributions that have been re-licensed (see AUTHORS file for the list of
26
+ contributors who have re-licensed their code).
27
+ --------------------------------------------------------------------------------
28
+ dateutil - Extensions to the standard Python datetime module.
29
+
30
+ Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
31
+ Copyright (c) 2012-2014 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
32
+ Copyright (c) 2014-2016 - Yaron de Leeuw <me@jarondl.net>
33
+ Copyright (c) 2015- - Paul Ganssle <paul@ganssle.io>
34
+ Copyright (c) 2015- - dateutil contributors (see AUTHORS file)
35
+
36
+ All rights reserved.
37
+
38
+ Redistribution and use in source and binary forms, with or without
39
+ modification, are permitted provided that the following conditions are met:
40
+
41
+ * Redistributions of source code must retain the above copyright notice,
42
+ this list of conditions and the following disclaimer.
43
+ * Redistributions in binary form must reproduce the above copyright notice,
44
+ this list of conditions and the following disclaimer in the documentation
45
+ and/or other materials provided with the distribution.
46
+ * Neither the name of the copyright holder nor the names of its
47
+ contributors may be used to endorse or promote products derived from
48
+ this software without specific prior written permission.
49
+
50
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
51
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
52
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
53
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
54
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
55
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
56
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
57
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
58
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
59
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
60
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61
+
62
+ The above BSD License Applies to all code, even that also covered by Apache 2.0.
63
+ License-File: AUTHORS.md
64
+ License-File: LICENSE
65
+ Keywords: date,datetime,dateutil,time,timezone
66
+ Classifier: Development Status :: 4 - Beta
67
+ Classifier: Intended Audience :: Developers
68
+ Classifier: License :: OSI Approved :: Apache Software License
69
+ Classifier: License :: OSI Approved :: BSD License
70
+ Classifier: Programming Language :: Python
71
+ Classifier: Programming Language :: Python :: 3
72
+ Classifier: Programming Language :: Python :: 3.10
73
+ Classifier: Programming Language :: Python :: 3.11
74
+ Classifier: Programming Language :: Python :: 3.12
75
+ Classifier: Programming Language :: Python :: 3.13
76
+ Classifier: Programming Language :: Python :: 3.14
77
+ Classifier: Programming Language :: Python :: 3.15
78
+ Classifier: Topic :: Software Development :: Libraries
79
+ Requires-Python: >=3.10
80
+ Requires-Dist: tzdata; sys_platform == 'win32'
81
+ Description-Content-Type: text/x-rst
82
+
83
+ dateutil - powerful extensions to datetime
84
+ ==========================================
85
+
86
+ |pypi| |support| |licence|
87
+
88
+ |gitter| |readthedocs|
89
+
90
+ |appveyor| |gha| |coverage|
91
+
92
+ .. |pypi| image:: https://img.shields.io/pypi/v/python-dateutil.svg?style=flat-square
93
+ :target: https://pypi.org/project/python-dateutil/
94
+ :alt: pypi version
95
+
96
+ .. |support| image:: https://img.shields.io/pypi/pyversions/python-dateutil.svg?style=flat-square
97
+ :target: https://pypi.org/project/python-dateutil/
98
+ :alt: supported Python version
99
+
100
+ .. |appveyor| image:: https://img.shields.io/appveyor/ci/dateutil/dateutil/master.svg?style=flat-square&logo=appveyor
101
+ :target: https://ci.appveyor.com/project/dateutil/dateutil
102
+ :alt: appveyor build status
103
+
104
+ .. |gha| image:: https://github.com/dateutil/dateutil/actions/workflows/validate.yml/badge.svg
105
+ :target: https://github.com/dateutil/dateutil/actions
106
+ :alt: github actions build status
107
+
108
+ .. |coverage| image:: https://codecov.io/gh/dateutil/dateutil/branch/master/graphs/badge.svg?branch=master
109
+ :target: https://codecov.io/gh/dateutil/dateutil?branch=master
110
+ :alt: Code coverage
111
+
112
+ .. |gitter| image:: https://badges.gitter.im/dateutil/dateutil.svg
113
+ :alt: Join the chat at https://gitter.im/dateutil/dateutil
114
+ :target: https://gitter.im/dateutil/dateutil
115
+
116
+ .. |licence| image:: https://img.shields.io/pypi/l/python-dateutil.svg?style=flat-square
117
+ :target: https://pypi.org/project/python-dateutil/
118
+ :alt: licence
119
+
120
+ .. |readthedocs| image:: https://img.shields.io/readthedocs/dateutil/latest.svg?style=flat-square&label=Read%20the%20Docs
121
+ :alt: Read the documentation at https://dateutil.readthedocs.io/en/latest/
122
+ :target: https://dateutil.readthedocs.io/en/latest/
123
+
124
+ The `dateutil` module provides powerful extensions to
125
+ the standard `datetime` module, available in Python.
126
+
127
+ Installation
128
+ ============
129
+ `dateutil` can be installed from PyPI using `pip` (note that the package name is
130
+ different from the importable name)::
131
+
132
+ pip install python-dateutil
133
+
134
+ Download
135
+ ========
136
+ dateutil is available on PyPI
137
+ https://pypi.org/project/python-dateutil/
138
+
139
+ The documentation is hosted at:
140
+ https://dateutil.readthedocs.io/en/stable/
141
+
142
+ Code
143
+ ====
144
+ The code and issue tracker are hosted on GitHub:
145
+ https://github.com/dateutil/dateutil/
146
+
147
+ Features
148
+ ========
149
+
150
+ * Computing of relative deltas (next month, next year,
151
+ next Monday, last week of month, etc);
152
+ * Computing of relative deltas between two given
153
+ date and/or datetime objects;
154
+ * Computing of dates based on very flexible recurrence rules,
155
+ using a superset of the `iCalendar <https://www.ietf.org/rfc/rfc2445.txt>`_
156
+ specification. Parsing of RFC strings is supported as well.
157
+ * Generic parsing of dates in almost any string format;
158
+ * Timezone (tzinfo) implementations for tzfile(5) format
159
+ files (/etc/localtime, /usr/share/zoneinfo, etc), TZ
160
+ environment string (in all known formats), iCalendar
161
+ format files, given ranges (with help from relative deltas),
162
+ local machine timezone, fixed offset timezone, UTC timezone,
163
+ and Windows registry-based time zones.
164
+ * Internal up-to-date world timezone information based on
165
+ Olson's database.
166
+ * Computing of Easter Sunday dates for any given year,
167
+ using Western, Orthodox or Julian algorithms;
168
+ * A comprehensive test suite.
169
+
170
+ Quick example
171
+ =============
172
+ Here's a snapshot, just to give an idea about the power of the
173
+ package. For more examples, look at the documentation.
174
+
175
+ Suppose you want to know how much time is left, in
176
+ years/months/days/etc, before the next easter happening on a
177
+ year with a Friday 13th in August, and you want to get today's
178
+ date out of the "date" unix system command. Here is the code:
179
+
180
+ .. code-block:: python3
181
+
182
+ >>> from dateutil.relativedelta import *
183
+ >>> from dateutil.easter import *
184
+ >>> from dateutil.rrule import *
185
+ >>> from dateutil.parser import *
186
+ >>> from datetime import *
187
+ >>> now = parse("Sat Oct 11 17:13:46 UTC 2003")
188
+ >>> today = now.date()
189
+ >>> year = rrule(YEARLY,dtstart=now,bymonth=8,bymonthday=13,byweekday=FR)[0].year
190
+ >>> rdelta = relativedelta(easter(year), today)
191
+ >>> print("Today is: %s" % today)
192
+ Today is: 2003-10-11
193
+ >>> print("Year with next Aug 13th on a Friday is: %s" % year)
194
+ Year with next Aug 13th on a Friday is: 2004
195
+ >>> print("How far is the Easter of that year: %s" % rdelta)
196
+ How far is the Easter of that year: relativedelta(months=+6)
197
+ >>> print("And the Easter of that year is: %s" % (today+rdelta))
198
+ And the Easter of that year is: 2004-04-11
199
+
200
+ Being exactly 6 months ahead was **really** a coincidence :)
201
+
202
+ Contributing
203
+ ============
204
+
205
+ We welcome many types of contributions - bug reports, pull requests (code, infrastructure or documentation fixes). For more information about how to contribute to the project, see the ``CONTRIBUTING.md`` file in the repository.
206
+
207
+
208
+ Author
209
+ ======
210
+ The dateutil module was written by Gustavo Niemeyer <gustavo@niemeyer.net>
211
+ in 2003.
212
+
213
+ It is maintained by:
214
+
215
+ * Gustavo Niemeyer <gustavo@niemeyer.net> 2003-2011
216
+ * Tomi Pieviläinen <tomi.pievilainen@iki.fi> 2012-2014
217
+ * Yaron de Leeuw <me@jarondl.net> 2014-2016
218
+ * Paul Ganssle <paul@ganssle.io> 2015-
219
+
220
+ Starting with version 2.4.1 and running until 2.8.2, all source and binary
221
+ distributions will be signed by a PGP key that has, at the very least, been
222
+ signed by the key which made the previous release. A table of release signing
223
+ keys can be found below:
224
+
225
+ =========== ============================
226
+ Releases Signing key fingerprint
227
+ =========== ============================
228
+ 2.4.1-2.8.2 `6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB`_
229
+ =========== ============================
230
+
231
+ New releases *may* have signed tags, but binary and source distributions
232
+ uploaded to PyPI will no longer have GPG signatures attached.
233
+
234
+ License
235
+ =======
236
+
237
+ All contributions after December 1, 2017 released under dual license - either `Apache 2.0 License <https://www.apache.org/licenses/LICENSE-2.0>`_ or the `BSD 3-Clause License <https://opensource.org/licenses/BSD-3-Clause>`_. Contributions before December 1, 2017 - except those those explicitly relicensed - are released only under the BSD 3-Clause License.
238
+
239
+
240
+ .. _6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB:
241
+ https://pgp.mit.edu/pks/lookup?op=vindex&search=0xCD54FCE3D964BEFB
@@ -0,0 +1,159 @@
1
+ dateutil - powerful extensions to datetime
2
+ ==========================================
3
+
4
+ |pypi| |support| |licence|
5
+
6
+ |gitter| |readthedocs|
7
+
8
+ |appveyor| |gha| |coverage|
9
+
10
+ .. |pypi| image:: https://img.shields.io/pypi/v/python-dateutil.svg?style=flat-square
11
+ :target: https://pypi.org/project/python-dateutil/
12
+ :alt: pypi version
13
+
14
+ .. |support| image:: https://img.shields.io/pypi/pyversions/python-dateutil.svg?style=flat-square
15
+ :target: https://pypi.org/project/python-dateutil/
16
+ :alt: supported Python version
17
+
18
+ .. |appveyor| image:: https://img.shields.io/appveyor/ci/dateutil/dateutil/master.svg?style=flat-square&logo=appveyor
19
+ :target: https://ci.appveyor.com/project/dateutil/dateutil
20
+ :alt: appveyor build status
21
+
22
+ .. |gha| image:: https://github.com/dateutil/dateutil/actions/workflows/validate.yml/badge.svg
23
+ :target: https://github.com/dateutil/dateutil/actions
24
+ :alt: github actions build status
25
+
26
+ .. |coverage| image:: https://codecov.io/gh/dateutil/dateutil/branch/master/graphs/badge.svg?branch=master
27
+ :target: https://codecov.io/gh/dateutil/dateutil?branch=master
28
+ :alt: Code coverage
29
+
30
+ .. |gitter| image:: https://badges.gitter.im/dateutil/dateutil.svg
31
+ :alt: Join the chat at https://gitter.im/dateutil/dateutil
32
+ :target: https://gitter.im/dateutil/dateutil
33
+
34
+ .. |licence| image:: https://img.shields.io/pypi/l/python-dateutil.svg?style=flat-square
35
+ :target: https://pypi.org/project/python-dateutil/
36
+ :alt: licence
37
+
38
+ .. |readthedocs| image:: https://img.shields.io/readthedocs/dateutil/latest.svg?style=flat-square&label=Read%20the%20Docs
39
+ :alt: Read the documentation at https://dateutil.readthedocs.io/en/latest/
40
+ :target: https://dateutil.readthedocs.io/en/latest/
41
+
42
+ The `dateutil` module provides powerful extensions to
43
+ the standard `datetime` module, available in Python.
44
+
45
+ Installation
46
+ ============
47
+ `dateutil` can be installed from PyPI using `pip` (note that the package name is
48
+ different from the importable name)::
49
+
50
+ pip install python-dateutil
51
+
52
+ Download
53
+ ========
54
+ dateutil is available on PyPI
55
+ https://pypi.org/project/python-dateutil/
56
+
57
+ The documentation is hosted at:
58
+ https://dateutil.readthedocs.io/en/stable/
59
+
60
+ Code
61
+ ====
62
+ The code and issue tracker are hosted on GitHub:
63
+ https://github.com/dateutil/dateutil/
64
+
65
+ Features
66
+ ========
67
+
68
+ * Computing of relative deltas (next month, next year,
69
+ next Monday, last week of month, etc);
70
+ * Computing of relative deltas between two given
71
+ date and/or datetime objects;
72
+ * Computing of dates based on very flexible recurrence rules,
73
+ using a superset of the `iCalendar <https://www.ietf.org/rfc/rfc2445.txt>`_
74
+ specification. Parsing of RFC strings is supported as well.
75
+ * Generic parsing of dates in almost any string format;
76
+ * Timezone (tzinfo) implementations for tzfile(5) format
77
+ files (/etc/localtime, /usr/share/zoneinfo, etc), TZ
78
+ environment string (in all known formats), iCalendar
79
+ format files, given ranges (with help from relative deltas),
80
+ local machine timezone, fixed offset timezone, UTC timezone,
81
+ and Windows registry-based time zones.
82
+ * Internal up-to-date world timezone information based on
83
+ Olson's database.
84
+ * Computing of Easter Sunday dates for any given year,
85
+ using Western, Orthodox or Julian algorithms;
86
+ * A comprehensive test suite.
87
+
88
+ Quick example
89
+ =============
90
+ Here's a snapshot, just to give an idea about the power of the
91
+ package. For more examples, look at the documentation.
92
+
93
+ Suppose you want to know how much time is left, in
94
+ years/months/days/etc, before the next easter happening on a
95
+ year with a Friday 13th in August, and you want to get today's
96
+ date out of the "date" unix system command. Here is the code:
97
+
98
+ .. code-block:: python3
99
+
100
+ >>> from dateutil.relativedelta import *
101
+ >>> from dateutil.easter import *
102
+ >>> from dateutil.rrule import *
103
+ >>> from dateutil.parser import *
104
+ >>> from datetime import *
105
+ >>> now = parse("Sat Oct 11 17:13:46 UTC 2003")
106
+ >>> today = now.date()
107
+ >>> year = rrule(YEARLY,dtstart=now,bymonth=8,bymonthday=13,byweekday=FR)[0].year
108
+ >>> rdelta = relativedelta(easter(year), today)
109
+ >>> print("Today is: %s" % today)
110
+ Today is: 2003-10-11
111
+ >>> print("Year with next Aug 13th on a Friday is: %s" % year)
112
+ Year with next Aug 13th on a Friday is: 2004
113
+ >>> print("How far is the Easter of that year: %s" % rdelta)
114
+ How far is the Easter of that year: relativedelta(months=+6)
115
+ >>> print("And the Easter of that year is: %s" % (today+rdelta))
116
+ And the Easter of that year is: 2004-04-11
117
+
118
+ Being exactly 6 months ahead was **really** a coincidence :)
119
+
120
+ Contributing
121
+ ============
122
+
123
+ We welcome many types of contributions - bug reports, pull requests (code, infrastructure or documentation fixes). For more information about how to contribute to the project, see the ``CONTRIBUTING.md`` file in the repository.
124
+
125
+
126
+ Author
127
+ ======
128
+ The dateutil module was written by Gustavo Niemeyer <gustavo@niemeyer.net>
129
+ in 2003.
130
+
131
+ It is maintained by:
132
+
133
+ * Gustavo Niemeyer <gustavo@niemeyer.net> 2003-2011
134
+ * Tomi Pieviläinen <tomi.pievilainen@iki.fi> 2012-2014
135
+ * Yaron de Leeuw <me@jarondl.net> 2014-2016
136
+ * Paul Ganssle <paul@ganssle.io> 2015-
137
+
138
+ Starting with version 2.4.1 and running until 2.8.2, all source and binary
139
+ distributions will be signed by a PGP key that has, at the very least, been
140
+ signed by the key which made the previous release. A table of release signing
141
+ keys can be found below:
142
+
143
+ =========== ============================
144
+ Releases Signing key fingerprint
145
+ =========== ============================
146
+ 2.4.1-2.8.2 `6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB`_
147
+ =========== ============================
148
+
149
+ New releases *may* have signed tags, but binary and source distributions
150
+ uploaded to PyPI will no longer have GPG signatures attached.
151
+
152
+ License
153
+ =======
154
+
155
+ All contributions after December 1, 2017 released under dual license - either `Apache 2.0 License <https://www.apache.org/licenses/LICENSE-2.0>`_ or the `BSD 3-Clause License <https://opensource.org/licenses/BSD-3-Clause>`_. Contributions before December 1, 2017 - except those those explicitly relicensed - are released only under the BSD 3-Clause License.
156
+
157
+
158
+ .. _6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB:
159
+ https://pgp.mit.edu/pks/lookup?op=vindex&search=0xCD54FCE3D964BEFB