Download Source Package egenix-mx-base:
mxDateTime is a Python extension package that provides three new objects, DateTime, DateTimeDelta and RelativeDateTime, which let you store and handle date/time values in a much more natural way than by using ticks (seconds since 1.1.1970 0:00 UTC), the representation used by Python's time module).
You can add, subtract and even multiply instances, pickle and copy them and convert the results to strings, COM dates, ticks and some other more esoteric values. In addition, there are several convenient constructors and formatters at hand to greatly simplify dealing with dates and times in real-world applications.
In addition to providing an easy-to-use Python interface the package also exports a comfortable C API interface for other extensions to build upon. This is especially interesting for database applications which often have to deal with date/time values (the mxODBC package is one example of an extension using this interface).
mxDateTime can convert between various different date/time storage formats, including COM dates, TJD, MJD, JDN, tuples and, probably most important, strings.
The date/time parser included in mxDateTime is one of the most flexible such parser available for Python. It is constantly being improved to make parsing date/time strings as easy as possible. At the same time, it offers a fully customizable interface which allows selecting valid date/time formats from a range of predefined categories.
There are also special parser and formatter modules for ARPA and ISO date/time formats, which are handy if you work a lot with Internet standards.
|
|
|
| Architecture | Version | Package Size | Installed Size | Files |
|---|---|---|---|---|
| alpha | 3.1.3-1 | 657.1 kB | 1100 kB | [list of files] |
| amd64 | 3.1.3-1 | 652.1 kB | 1076 kB | [list of files] |
| armel | 3.1.3-1 | 652.3 kB | 1068 kB | [list of files] |
| avr32 (unofficial port) | 3.1.3-1 | 653.2 kB | 1044 kB | [list of files] |
| hppa | 3.1.3-1 | 658.8 kB | 1084 kB | [list of files] |
| hurd-i386 | 3.1.3-1 | 647.7 kB | 1052 kB | [list of files] |
| i386 | 3.1.3-1 | 646.7 kB | 1052 kB | [list of files] |
| ia64 | 3.1.3-1 | 676.0 kB | 1208 kB | [list of files] |
| kfreebsd-amd64 | 3.1.3-1 | 652.1 kB | 980 kB | [list of files] |
| kfreebsd-i386 | 3.1.3-1 | 647.7 kB | 962 kB | [list of files] |
| m68k (unofficial port) | 3.1.2-1 | 644.9 kB | 1064 kB | [list of files] |
| mips | 3.1.3-1 | 651.5 kB | 1084 kB | [list of files] |
| mipsel | 3.1.3-1 | 650.7 kB | 1084 kB | [list of files] |
| powerpc | 3.1.3-1 | 651.3 kB | 1080 kB | [list of files] |
| s390 | 3.1.3-1 | 650.5 kB | 1068 kB | [list of files] |
| sparc | 3.1.3-1 | 650.7 kB | 1076 kB | [list of files] |