Dates & Periods

Dates & Periods#

The module is shipped with a date module for manipulating time periods and converting dates between different formats. Th period function can be use to create Period instanc.::

import ccy
p = ccy.period("1m")
p
1M
p += "2w"
p
1M2W
p += "3m"
p
4M2W
p -= "1w"
p
4M1W
p -= "1w"
p
4M
p -= "1w"
p
4M1W