Source

django-timedelta-field / timedelta / helpers.py

Author Commit Message Labels Comments Date
Matthew Schinckel
Finalize py3k support.
Flavio Curella
added py3k support.
Matthew Schinckel
Fix an issue where invalid strings still passed parsing.
Mike Fogel
Tighten up regex for microseconds in parse()
Mike Fogel
Support microseconds on sqlite
Matthew Schinckel
Throw an exception if an empty string is passed to parse.
Matthew Schinckel
Remove redundant check.
Matthew Schinckel
Added a heap of doctests. Resolves #8: recognise 'w' for week parsing. Fixup regexes to be stricter at appropriate times for parsing.
Matthew Schinckel
Add test/example for parse("1h").
Matthew Schinckel
Resolves #7: correctly parse 1h.
Matthew Schinckel
Compatibility with python <= 2.6.x: total_seconds
Matthew Schinckel
Added helpers.decimal_percentage.
Matthew Schinckel
Don't create string by concatenating, use [].join
Mike Fogel
expanding parse() to cover serialization format
Mike Fogel
iso8601_repr: doctest fix & don't rely on dict key order The doctest was off from what's described on the wikipedia link. The formatting relied on dictionary key order, which is not gauranteed.
Mike Fogel
passing render and nice_repr tests again d9b4f29eff5a changed (it appears unintentionally) of nice_repr to not include commas seperating time units in the output string. This commit restores the comma-seperating behavoir.
Matthew Schinckel
Merge
Guillaume Libersat
merge with schinkel upstream
Guillaume Libersat
add helper and templatetag for ISO8601 duration representation
Matthew Schinckel
Merge
Matthew Schinckel
Added support for an SQL format.
David Butler
Fixed regular expression to allow non plural number of days
savemu
fix unicode validation error
Matthew Schinckel
Doctest fixes
Matthew Schinckel
Missed a kwarg of float instead of as_float
Matthew Schinckel
Allow for decimal_hours to have a varying number of decimal places
Matthew Schinckel
Added week_containing function. Not really happy that it belongs here, though
Matthew Schinckel
Added modulo function to helpers
Tags
0.4.2
Matthew Schinckel
Added more tests
Matthew Schinckel
Don't require seconds, when input is in the format 00:00
  1. Prev
  2. 1
  3. 2
  4. Next