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.