Skip to content

Commit

Permalink
Merge pull request #17 from thombashi/develop
Browse files Browse the repository at this point in the history
[ci skip] Update README
  • Loading branch information
thombashi committed Mar 27, 2016
2 parents 034bbbe + 203ce88 commit ed04762
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,41 +41,6 @@ Create and convert to string
Get iterator
------------

.. code:: python
import datetime
from datetimerange import DateTimeRange
time_range = DateTimeRange("2015-01-01T00:00:00+0900", "2015-01-04T00:00:00+0900")
for value in time_range.range(datetime.timedelta(days=1)):
print value
::

2015-01-01 00:00:00+09:00
2015-01-02 00:00:00+09:00
2015-01-03 00:00:00+09:00
2015-01-04 00:00:00+09:00

.. code:: python
from datetimerange import DateTimeRange
from dateutil.relativedelta import relativedelta
time_range = DateTimeRange("2015-01-01T00:00:00+0900", "2016-01-01T00:00:00+0900")
for value in time_range.range(relativedelta(months=+4)):
print value
::

2015-01-01 00:00:00+09:00
2015-05-01 00:00:00+09:00
2015-09-01 00:00:00+09:00
2016-01-01 00:00:00+09:00

Get iterator
------------

.. code:: python
import datetime
Expand Down

0 comments on commit ed04762

Please sign in to comment.