>>> from munin.provider.date import DateProvider
>>> prov = DateProvider()
>>> prov.do_process('2012')
2012
>>> prov.do_process('2011-12-12')
2011
Try to parse an arbitary date string into a year.
Create a new Provider with the following attributes:
Parameters: | compress – Deduplicate data? |
---|
Try to parse an arbitary date string into a year.
Create a new Provider with the following attributes:
Parameters: | compress – Deduplicate data? |
---|