#4121: DateTime, Date,Time, MonthDay, YearMonth for general usage -----------------------+---------------------------------------------------- Reporter: Ciantic | Owner: adrian Status: new | Component: Core framework Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 1 -----------------------+---------------------------------------------------- Currently Django does not let one to use the great functions `django.utils.translation.get_date_formats`, `get_partial_date_formats` in any handy way. The following method adds all DateTime, Date, Time, MonthDay, YearMonth for general usage. Names come from common naming: * `c` Datetime, appropriate date and time representation (for example same name in strftime) * `x` Date, appropriate date representation. e.g. '2007-04-23' (for example same name in strftime) * `X` Datetime, appropriate date and time representation. e.g. '2007-04- 23 4:13' (for example same name in strftime) * `k` Month day, appropriate month day representation. e.g. 'January 5' (I Invented the "k" naming) * `K` Year month, appropriate year month representation. e.g. '2007 January' (I invented the "K" naming) This allows one to use all of the above in `date` filter and in `now` tag.
-- Ticket URL: <http://code.djangoproject.com/ticket/4121> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
