| 1 | """Strptime-related classes and functions.
|
|---|
| 2 |
|
|---|
| 3 | CLASSES:
|
|---|
| 4 | LocaleTime -- Discovers and stores locale-specific time information
|
|---|
| 5 | TimeRE -- Creates regexes for pattern matching a string of text containing
|
|---|
| 6 | time information
|
|---|
| 7 |
|
|---|
| 8 | FUNCTIONS:
|
|---|
| 9 | _getlang -- Figure out what language is being used for the locale
|
|---|
| 10 | strptime -- Calculates the time struct represented by the passed-in string
|
|---|
| 11 |
|
|---|
| 12 | """
|
|---|
| 13 | import time
|
|---|
| 14 | import locale
|
|---|
| 15 | import calendar
|
|---|
| 16 | from re import compile as re_compile
|
|---|
| 17 | from re import IGNORECASE
|
|---|
| 18 | from re import escape as re_escape
|
|---|
| 19 | from datetime import date as datetime_date
|
|---|
| 20 | try:
|
|---|
| 21 | from thread import allocate_lock as _thread_allocate_lock
|
|---|
| 22 | except:
|
|---|
|
|---|