Pyfdate Download


Epydoc docs

Pydoc docs

tutorial home

pyfdate home


Creative Commons Licence

This work is licensed under the Creative Commons Attribution 2.0 License You are free to copy, distribute, and display the work, to make derivative works, and to make commercial use of the work. If you do, you must give the original author credit.

Locations of visitors to this page

Download files

Download the current version in a zipfile

The current version of pyfdate

... is version 0.7 (2008-08-30)

Localization files updated 2008-03-18

How to install pyfdate

Save into your PythonNN/Lib/site-packages directory.

NOTE— Do NOT create a pyfdate subdirectory of the site-packages directory and then copy into the .../site-packages/pyfdate/ subdirectory. That will NOT work.

If you wish, open one of the pyfdate_local_<language>.py files and save it into your PythonNN/Lib/site-packages directory with the filename

Localization Files

  • American English
  • British English
  • Dansk (Danish)
  • Deutsch (German)
  • Espanol (Spanish)
  • French
  • Italian
  • Norsk (Norwegian) — thanks to Bjorn Pettersen
  • Portuguese
  • Turkish — thanks to onur özbalcı

Latest Version


version 0.7 (2008-08-30)

  • added Time.flex() method. See the tutorial for a discussion of monthly arithmetic and this method.

Older Versions

version 0.6 (2008-08-20)

  • added several "t2" (time, including seconds) methods to Time.
  • corrected documentation of "t2" methods. These methods show the time including seconds, not (as the documentation previously reported) including hundredths of seconds.

version 0.5.7 (2008-06-06)

  • added datesep, timesep, and seps keyword arguments to Time.get_isodatetime() method.

2008-03-18 : version 0.5.6

  • converted all non-English localization files to use Unicode. Thanks to Martin van Löwis for his advice.
  • Corrected errors in Turkish localization file — thanks to onur özbalcı.
  • Corrected errors in the civil date and time formats for the German (Deutsche) localization file.

2008-01-19 : version 0.5.6

  • added Time.t property (apparently it had somehow been deleted at some point).
  • added numsplit() function, which makes it easy to parse datetimes in ISO format.
  • added a new constant LANG to pyfdate and all of the language local modules. This is a convenience that allows pyfdate to tell you what language module it is using.

2008-01-01 : version 0.5.5

  • Improved the docstrings for use with epydoc
  • removed support for the optional "year" arg from the Time.isLeapYear() method.
  • created a new isLeapYear(year) function at the module level.
  • added support for keyword args on the Time.clone() method
  • added some tests of Time.clone() keyword args to test_11 in


  • Improved the docstrings for use with epydoc
  • Regenerated the epydoc and pydoc documentation.


  • Converted all pyfdate_local files to Unicode
  • added pyfdate_local_turk

Version 0.5.3 -- 2007-12-17

  • added Time.goto() method
  • added Time.subtract() method
  • added Time.anniversaryOf() method
  • added Time.diffyears() and diffy() methods
  • added Time.diffmonths() and diffm() method
  • added Time.diffyearsmonths() and diffym() method
  • renamed Period.pshort to Period.short
  • added Period.shortest
  • added Period.days property (for consistency)

Version 0.4 -- 2007-12-16

  • Fixed check for ImportError on import of pyfdate_local.

Version 0.3 -- 2007-12-09

  • Added the isofilename property

Version 0.2 -- 2007-12-08

  • Note that version 0.2 is not backward compatible with version 0.1.
  • Fixed a few bugs
  • Changed the name of the ignoreToday keyword to useToday and flipped the boolean default value.
  • Reworked and expanded the language-specific localization files to make the more flexible and portable.

Version 0.1. -- 2007-12-05

  • First released version