'Args:
fmt: any valid strptime format is supported
encoding: encoding to use on byte input (default: \'utf-8\')'

def __init__(self, fmt, encoding=u'utf-8'):

    super(bytespdate2num, self).__init__(fmt)
    self.encoding = encoding
