summaryrefslogtreecommitdiff
path: root/django/utils/dateparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson2022-03-241-2/+2
| | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-47/+45
|
* Refs #30141 -- Removed unused branch in parse_duration().Mariusz Felisiak2022-01-111-2/+0
| | | Unused since 99fc5dc13c12d874ffc1c8f47a6421494e720b31.
* Fixed #33368 -- Fixed parse_duration() crash on invalid separators for ↵mendespedro2021-12-201-4/+4
| | | | decimal fractions.
* Fixed #32904 -- Made parse_time() more strict.abhiabhi942021-07-071-1/+1
| | | | Thanks Keryn Knight for the report.
* Fixed #32892 -- Optimized django.utils.dateparse functions by using ↵Keryn Knight2021-07-061-26/+35
| | | | fromisoformat().
* Fixed #32727 -- Allowed spaces before time zone offset in parse_datetime().Ben Wilber2021-06-241-1/+1
|
* Fixed #32269 -- Fixed parse_duration() for negative days in ISO 8601 format.starryrbs2020-12-211-0/+2
|
* Fixed #30803 -- Allowed comma separators for milliseconds in ↵Farhaan Bukhsh2019-11-271-3/+3
| | | | | | django.utils.dateparse functions. Co-Authored-By: Ben Wilber <benwilber@gmail.com>
* Refs #30803 -- Allowed comma separators for decimal fractions in ↵Farhaan Bukhsh2019-11-271-2/+2
| | | | parse_duration().
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-7/+7
|
* Fixed #30141 -- Fixed parse_duration() for some negative durations.Seunghun Lee2019-02-231-3/+4
|
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-4/+2
|
* Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов2017-11-071-3/+5
|
* Fixed #28076 -- Added support for PostgreSQL's interval format to ↵Matthew Schinckel2017-07-031-3/+19
| | | | parse_duration().
* Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.Anton Samarchyan2017-02-111-10/+10
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-5/+4
| | | | Thanks Tim Graham for the review.
* Fixed #27699 -- Added negative timedelta support to parse_duration()Jinank Jain2017-01-141-3/+5
|
* Fixed #26656 -- Added duration (timedelta) support to DjangoJSONEncoder.Will Hardy2016-07-141-2/+4
|
* Fixed #24897 -- Allowed using choices longer than 1 day with DurationFieldzauddelig2015-06-021-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Fixed #2443 -- Added DurationField.Marc Tamlyn2014-12-201-0/+41
| | | | | | | | | | | A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-3/+3
| | | | comprehension
* Fixed #22814 -- Allowed ISO-8601 [+-]hh timezone format in parse_datetimeRichard Eames2014-06-121-2/+3
|
* Correct flake8 E302 violationsRay Ashman Jr2013-11-021-0/+2
|
* Refactored code and tests that relied on django.utils.tzinfo.Aymeric Augustin2013-09-091-4/+5
| | | | Refs #17262.
* Fixed #18728 -- Made colon optional in tzinfoAymeric Augustin2012-08-191-7/+7
| | | | | | | Made two-digit hours and minutes mandatory in tzinfo (the code used to crash if a one-digit representation was provided). Added standalone tests for django.utils.dateparse.
* Removed an inaccurate statementAymeric Augustin2012-08-191-4/+0
| | | | in docstrings of dateparse functions.
* [py3] Fixed access to dict keys/values/items.Aymeric Augustin2012-08-071-3/+4
|
* Negligible spacing cleanup in utils/dateparse.pyAdrian Holovaty2011-12-171-27/+19
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@17219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin2011-11-181-0/+93
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37