On 2017-06-28 18:30, Sayth Renshaw wrote:

Thoughts or examples?

dateutil.rrule is what you may use e.g.

In [44]: days[:5], days[-5:]
Out[44]:
([datetime.datetime(2017, 6, 28, 23, 58, 11),
   datetime.datetime(2017, 7, 3, 23, 58, 11),
   datetime.datetime(2017, 7, 5, 23, 58, 11),
   datetime.datetime(2017, 7, 10, 23, 58, 11),
   datetime.datetime(2017, 7, 12, 23, 58, 11)],
  [datetime.datetime(2017, 12, 13, 23, 58, 11),
   datetime.datetime(2017, 12, 18, 23, 58, 11),
   datetime.datetime(2017, 12, 20, 23, 58, 11),
   datetime.datetime(2017, 12, 25, 23, 58, 11),
   datetime.datetime(2017, 12, 27, 23, 58, 11)])
In [45]:

Thanks. I am just researching now the format that has come out. unclear what 58 
represents.

On its own, not much. However, is 23:58:11 easier to understand?

--
Michael F. Stemper
Nostalgia just ain't what it used to be.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to