merge default doc-dc
authorDamien Correia
Mon, 11 Jun 2018 09:59:25 +0200
branchdoc-dc
changeset 262 4abd201debc6
parent 261 a11273a42e18 (diff)
parent 188 bed6978c453c (current diff)
child 263 a70ef9a05ea1
merge default
src/pyams_utils/zmi/__init__.py
--- a/src/pyams_utils/__init__.py	Fri Jun 08 15:17:28 2018 +0200
+++ b/src/pyams_utils/__init__.py	Mon Jun 11 09:59:25 2018 +0200
@@ -9,7 +9,10 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-
+"""
+PyAMS utilities
+===============
+"""
 __docformat__ = 'restructuredtext'
 
 
--- a/src/pyams_utils/date.py	Fri Jun 08 15:17:28 2018 +0200
+++ b/src/pyams_utils/date.py	Mon Jun 11 09:59:25 2018 +0200
@@ -28,10 +28,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
@@ -48,9 +48,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
 
@@ -65,7 +65,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