Date Provider

Overview

Try to parse a date string into a year.

This makes use of the magicdate module:

Example Usage

>>> from munin.provider.date import DateProvider
>>> prov = DateProvider()
>>> prov.do_process('2012')
2012
>>> prov.do_process('2011-12-12')
2011

Reference

class munin.provider.date.DateProvider(compress=False)[source]

Try to parse an arbitary date string into a year.

Create a new Provider with the following attributes:

Parameters:compress – Deduplicate data?
class munin.provider.date.DateProvider(compress=False)[source]

Try to parse an arbitary date string into a year.

Create a new Provider with the following attributes:

Parameters:compress – Deduplicate data?

Table Of Contents

Related Topics

This Page

Useful links:

Package:

Github: