Package parsedatetime
[hide private]
[frames] | no frames]

Package parsedatetime

source code

parsedatetime

Parse human-readable date/time text.

Requires Python 2.6 or later


Version: 2.4

Author: Mike Taylor

Copyright: Copyright (c) 2017 Mike Taylor

License: Apache License 2.0

Submodules [hide private]

Classes [hide private]
  Calendar
A collection of routines to input, parse and manipulate date and times.
  Constants
Default set of constants for parsedatetime.
Functions [hide private]
 
_extract_date(m) source code
 
_extract_time(m) source code
 
_pop_time_accuracy(m, ctx) source code
 
_parse_date_w3dtf(dateString) source code
 
_parse_date_rfc822(dateString)
Parse an RFC822, RFC1123, RFC2822, or asctime-style date
source code
 
_initSymbols(ptc)
Initialize symbols and single character constants.
source code
Variables [hide private]
  __email__ = u'bear@bear.im'
  __url__ = u'https://github.com/bear/parsedatetime'
  __download_url__ = u'https://pypi.python.org/pypi/parsedatetime'
  __description__ = u'Parse human-readable date/time text.'
  log = logging.getLogger(__name__)
  debug = False
  pdtLocales = {'de_DE': <module 'parsedatetime.pdt_locales.de_D...
  _monthnames = set([u'apr', u'april', u'aug', u'august', u'dec'...
  _daynames = set([u'fri', u'mon', u'sat', u'sun', u'thu', u'tue...
  VERSION_FLAG_STYLE = 1
  VERSION_CONTEXT_STYLE = 2
  __package__ = 'parsedatetime'
  x = 'fr_FR'
Variables Details [hide private]

pdtLocales

Value:
{'de_DE': <module 'parsedatetime.pdt_locales.de_DE' from '/builddir/bu\
ild/BUILD/parsedatetime-2.4/parsedatetime/pdt_locales/de_DE.py'>,
 'en_AU': <module 'parsedatetime.pdt_locales.en_AU' from '/builddir/bu\
ild/BUILD/parsedatetime-2.4/parsedatetime/pdt_locales/en_AU.py'>,
 'en_US': <module 'parsedatetime.pdt_locales.en_US' from '/builddir/bu\
ild/BUILD/parsedatetime-2.4/parsedatetime/pdt_locales/en_US.py'>,
 'es': <module 'parsedatetime.pdt_locales.es' from '/builddir/build/BU\
ILD/parsedatetime-2.4/parsedatetime/pdt_locales/es.py'>,
...

_monthnames

Value:
set([u'apr',
     u'april',
     u'aug',
     u'august',
     u'dec',
     u'december',
     u'feb',
     u'february',
...

_daynames

Value:
set([u'fri', u'mon', u'sat', u'sun', u'thu', u'tue', u'wed'])