Python-datemath

Latest version: v3.0.3

Safety actively analyzes 683530 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

1.4.5

added
- [NEW] Added roundDown functionality. Allows user to specify the default rounding for expressions such as `/d`.
- example - assuming the time is currently 2016-01-01 12:00:00, we should get the following

>>> now = 2016-01-01 14:00:00+00:00
>>> dm('now+/d', roundDown=False)
<Arrow [2016-01-01T23:59:00+00:00]>
>>> dm('now/d')
<Arrow [2016-01-01T00:00:00+00:00]>

1.4.4

fixed
- [FIX] Fixed bug with expression logic and rounding: https://github.com/nickmaccarthy/python-datemath/pull/2

1.4.3

added
[NEW] Floats are now supported for days, hours, and seconds units. Example now-2.5d, now-3.2h. Any other unit other than days, hours, or seconds that is a float will be converted to an int and floored due to the datetime() module not being able to handle them.

How to release

* Create a new tag/release in github.
* Ensure new tag version matches VERSION.txt
* Actions should take care of the rest

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.