Skip to content

Commit 6a4686c

Browse files
committed
README update
1 parent 4655c7a commit 6a4686c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ datetime.datetime(2016, 1, 22, 22, 58, 28, 338060, tzinfo=tzutc())
113113
>>> dm('now+2d-1m', type='datetime')
114114
datetime.datetime(2016, 1, 24, 22, 57, 45, 394470, tzinfo=tzutc())
115115
```
116-
Oh, you want an Epoch/Unix Timestamp back instead? Yeah, we can do that.
117-
```python
118-
>>> dm('now+2d-1m', type='timestamp')
119-
1453676321
120-
```
121116

122117
Or you can just import the `datamath` module, this will always give us a native `datetime` object
123118
```
@@ -133,6 +128,12 @@ datetime.datetime(2016, 1, 1, 0, 0, tzinfo=tzutc())
133128
>>>
134129
```
135130

131+
If you want a Epoch timestamp back instead, we can do that.
132+
```python
133+
>>> dm('now+2d-1m', type='timestamp')
134+
1453676321
135+
```
136+
136137
# What timezone are my objects in?
137138
By default all objects returned by datemath are in UTC. If you want them them in a different timezone, just pass along the ```tz``` argument.
138139
Timezone list can be found here: https://gist.github.com/pamelafox/986163

0 commit comments

Comments
 (0)