# HG changeset patch # User Damien Correia # Date 1530180112 -7200 # Node ID 0579aa1658560acdd99e2e7d8b925ad3ebde7c5e # Parent e2a747608ef6e0f3ff89f0e14cd253f6c0a0d806# Parent 03c69e5c959b29abf9bcdb32002661d80eb116c2 merge default diff -r 03c69e5c959b -r 0579aa165856 src/pyams_utils/__init__.py --- a/src/pyams_utils/__init__.py Thu Jun 28 08:35:02 2018 +0200 +++ b/src/pyams_utils/__init__.py Thu Jun 28 12:01:52 2018 +0200 @@ -9,7 +9,10 @@ # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # - +""" +PyAMS utilities +=============== +""" __docformat__ = 'restructuredtext' diff -r 03c69e5c959b -r 0579aa165856 src/pyams_utils/date.py --- a/src/pyams_utils/date.py Thu Jun 28 08:35:02 2018 +0200 +++ b/src/pyams_utils/date.py Thu Jun 28 12:01:52 2018 +0200 @@ -32,10 +32,10 @@ def unidate(value): """Get specified date converted to unicode ISO format - + Dates are always assumed to be stored in GMT timezone - - :param date value: input date to convert to unicode + + :param datetime value: input date to convert to unicode :return: unicode; input date converted to unicode >>> from datetime import datetime @@ -52,9 +52,9 @@ def parse_date(value): """Get date specified in unicode ISO format to Python datetime object - + Dates are always assumed to be stored in GMT timezone - + :param str value: unicode date to be parsed :return: datetime; the specified value, converted to datetime @@ -69,7 +69,7 @@ def date_to_datetime(value): """Get datetime value converted from a date or datetime object - + :param date/datetime value: a date or datetime value to convert :return: datetime; input value converted to datetime