source: vendor/python/2.5/Lib/_strptime.py

Last change on this file was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 19.2 KB
Line 
1"""Strptime-related classes and functions.
2
3CLASSES:
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
8FUNCTIONS:
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"""
13import time
14import locale
15import calendar
16from re import compile as re_compile
17from re import IGNORECASE
18from re import escape as re_escape
19from datetime import date as datetime_date
20try:
21 from thread import allocate_lock as _thread_allocate_lock
22except: