From c7a811058be7e5c6ac07a21fab0555b08d98f660 Mon Sep 17 00:00:00 2001 From: rupozzi Date: Fri, 20 May 2022 18:01:14 +0200 Subject: [PATCH] docs: Updating TimeUtilities docstring --- src/DIRAC/Core/Utilities/TimeUtilities.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/DIRAC/Core/Utilities/TimeUtilities.py b/src/DIRAC/Core/Utilities/TimeUtilities.py index 31437bf9542..efd6e4fc1ff 100755 --- a/src/DIRAC/Core/Utilities/TimeUtilities.py +++ b/src/DIRAC/Core/Utilities/TimeUtilities.py @@ -1,23 +1,19 @@ """ -DIRAC Times module +DIRAC TimeUtilities module Support for basic Date and Time operations based on system datetime module. It provides common interface to UTC timestamps, converter to string types and back. -The following datetime classes are used in the returned objects: - - - time = datetime.timedelta - Useful timedelta constant are also provided to define time intervals. Notice: datetime.timedelta objects allow multiplication and division by interger but not by float. Thus: - - DIRAC.Times.second * 1.5 is not allowed - - DIRAC.Times.second * 3 / 2 is allowed + - DIRAC.TimeUtilities.second * 1.5 is not allowed + - DIRAC.TimeUtilities.second * 3 / 2 is allowed An timeInterval class provides a method to check if a give datetime is in the defined interval.