diff options
author | Bernat Gabor <jokerjokerer@gmail.com> | 2017-12-06 23:50:52 +0000 |
---|---|---|
committer | Bernat Gabor <jokerjokerer@gmail.com> | 2017-12-07 00:15:47 +0000 |
commit | 04254e3c4718b9b2ee96fa38a5d67c8104989592 (patch) | |
tree | 0985a6ce0cb0eba50815a1fd3463579758a095bc /dateutil | |
parent | 660a88ef71a3619d39d23fd2bd0be44a9c82256c (diff) | |
download | dateutil-04254e3c4718b9b2ee96fa38a5d67c8104989592.tar.gz |
add document generation to tox, and trigger automatically at CI (also check links in documentation to avoid having dangling pointers to the internet)
Diffstat (limited to 'dateutil')
-rw-r--r-- | dateutil/parser/_parser.py | 2 | ||||
-rw-r--r-- | dateutil/parser/isoparser.py | 4 | ||||
-rw-r--r-- | dateutil/relativedelta.py | 2 | ||||
-rw-r--r-- | dateutil/tz/tz.py | 3 | ||||
-rw-r--r-- | dateutil/zoneinfo/__init__.py | 2 | ||||
-rw-r--r-- | dateutil/zoneinfo/rebuild.py | 2 |
6 files changed, 9 insertions, 6 deletions
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py index 541cdfc..2291f39 100644 --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -22,7 +22,7 @@ Additional resources about date/time string formats can be found below: - `A summary of the international standard date and time notation <http://www.cl.cam.ac.uk/~mgk25/iso-time.html>`_ - `W3C Date and Time Formats <http://www.w3.org/TR/NOTE-datetime>`_ -- `Time Formats (Planetary Rings Node) <http://pds-rings.seti.org/tools/time_formats.html>`_ +- `Time Formats (Planetary Rings Node) <https://pds-rings.seti.org:443/tools/time_formats.html>`_ - `CPAN ParseDate module <http://search.cpan.org/~muir/Time-modules-2013.0912/lib/Time/ParseDate.pm>`_ - `Java SimpleDateFormat Class diff --git a/dateutil/parser/isoparser.py b/dateutil/parser/isoparser.py index 89aa3ec..1550c3a 100644 --- a/dateutil/parser/isoparser.py +++ b/dateutil/parser/isoparser.py @@ -65,7 +65,7 @@ class isoparser(object): - ``YYYY`` - ``YYYY-MM`` or ``YYYYMM`` - - ``YYYY-MM-DD`` or `YYYYMMDD`` + - ``YYYY-MM-DD`` or ``YYYYMMDD`` Uncommon: @@ -79,7 +79,7 @@ class isoparser(object): - ``hh`` - ``hh:mm`` or ``hhmm`` - - ``hh:mm:ss`` or `hhmmss`` + - ``hh:mm:ss`` or ``hhmmss`` - ``hh:mm:ss.sss`` or ``hh:mm:ss.ssssss`` (3-6 sub-second digits) Midnight is a special case for `hh`, as the standard supports both diff --git a/dateutil/relativedelta.py b/dateutil/relativedelta.py index 2c3e25c..584ed5a 100644 --- a/dateutil/relativedelta.py +++ b/dateutil/relativedelta.py @@ -19,7 +19,7 @@ class relativedelta(object): """ The relativedelta type is based on the specification of the excellent work done by M.-A. Lemburg in his - `mx.DateTime <http://www.egenix.com/files/python/mxDateTime.html>`_ extension. + `mx.DateTime <https://www.egenix.com/products/python/mxBase/mxDateTime/>`_ extension. However, notice that this type does *NOT* implement the same algorithm as his work. Do *NOT* expect it to behave like mx.DateTime's counterpart. diff --git a/dateutil/tz/tz.py b/dateutil/tz/tz.py index 496148f..39e19c7 100644 --- a/dateutil/tz/tz.py +++ b/dateutil/tz/tz.py @@ -122,6 +122,7 @@ class tzutc(datetime.tzinfo): class tzoffset(datetime.tzinfo): """ A simple class for representing a fixed offset from UTC. + :param name: The timezone name, to be returned when ``tzname()`` is called. :param offset: @@ -156,10 +157,12 @@ class tzoffset(datetime.tzinfo): """ Whether or not the "wall time" of a given datetime is ambiguous in this zone. + :param dt: A :py:class:`datetime.datetime`, naive or time zone aware. :return: Returns ``True`` if ambiguous, ``False`` otherwise. + .. versionadded:: 2.6.0 """ return False diff --git a/dateutil/zoneinfo/__init__.py b/dateutil/zoneinfo/__init__.py index 1df1d96..34f11ad 100644 --- a/dateutil/zoneinfo/__init__.py +++ b/dateutil/zoneinfo/__init__.py @@ -8,7 +8,7 @@ from io import BytesIO from dateutil.tz import tzfile as _tzfile -__all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata", "rebuild"] +__all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"] ZONEFILENAME = "dateutil-zoneinfo.tar.gz" METADATA_FN = 'METADATA' diff --git a/dateutil/zoneinfo/rebuild.py b/dateutil/zoneinfo/rebuild.py index 8dd5e1d..78f0d1a 100644 --- a/dateutil/zoneinfo/rebuild.py +++ b/dateutil/zoneinfo/rebuild.py @@ -12,7 +12,7 @@ from dateutil.zoneinfo import METADATA_FN, ZONEFILENAME def rebuild(filename, tag=None, format="gz", zonegroups=[], metadata=None): """Rebuild the internal timezone info in dateutil/zoneinfo/zoneinfo*tar* - filename is the timezone tarball from ftp.iana.org/tz. + filename is the timezone tarball from ``ftp.iana.org/tz``. """ tmpdir = tempfile.mkdtemp() |