You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or you can just import the `datamath` module, this will always give us a native `datetime` object
117
+
Or you can just import the `datemath` module, this will always give us a native `datetime` object
118
118
```
119
119
>>> from datemath import datemath
120
120
>>>
@@ -153,9 +153,10 @@ from datemath import dm
153
153
```
154
154
155
155
# Release Notes
156
-
* v1.4.8 - Fixed regressions in `arrow()`, migrated from `replace()` to `shift()`. Added python2 and python3 requirements and tests. Modifed `helpers.py` to support `replace()` for legacy 2.7, and `shift()` for python 3+
157
-
* v1.4.7 - Fixed timezone for date strings: https://github.com/nickmaccarthy/python-datemath/issues/6
158
-
* v1.4.5 - Added roundDown functionality. Allows user to specify the default rounding for expressions such as `/d`.
156
+
*`v1.4.8` - Fixed regressions in `arrow()`, migrated from `replace()` to `shift()`. Added python2 and python3 requirements and tests. Modifed `helpers.py` to support `replace()` for legacy 2.7, and `shift()` for python 3.7. Only python `2.7` and `3.7+` are supported going forward. In a future version, only `3.7+` will be supported.
157
+
158
+
*`v1.4.7` - Fixed timezone for date strings: https://github.com/nickmaccarthy/python-datemath/issues/6
159
+
*`v1.4.5` - Added roundDown functionality. Allows user to specify the default rounding for expressions such as `/d`.
159
160
* example - assuming the time is currently 2016-01-01 12:00:00, we should get the following
160
161
```
161
162
>>> # now = 2016-01-01 14:00:00+00:00
@@ -164,8 +165,8 @@ from datemath import dm
164
165
>>> dm('now/d')
165
166
<Arrow [2016-01-01T00:00:00+00:00]>
166
167
```
167
-
* v1.4.4 - Fixed bug with expression logic and rounding: https://github.com/nickmaccarthy/python-datemath/pull/2
168
-
* v1.4.3 - 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.
168
+
*`v1.4.4` - Fixed bug with expression logic and rounding: https://github.com/nickmaccarthy/python-datemath/pull/2
169
+
*`v1.4.3` - 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.
0 commit comments