Skip to content

Commit

Permalink
docs: Updating TimeUtilities docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
rupozzi committed May 30, 2022
1 parent 9abc93d commit c7a8110
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/DIRAC/Core/Utilities/TimeUtilities.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit c7a8110

Please sign in to comment.