#4121: DateTime, Date,Time, MonthDay, YearMonth for general usage
-----------------------+----------------------------------------------------
   Reporter:  Ciantic  |                Owner:  adrian                
     Status:  new      |            Component:  Core framework        
    Version:  SVN      |           Resolution:                        
   Keywords:           |                Stage:  Design decision needed
  Has_patch:  1        |           Needs_docs:  0                     
Needs_tests:  0        |   Needs_better_patch:  0                     
-----------------------+----------------------------------------------------
Comment (by Ciantic):

 I see this patch or some modification of this patch as necessity.
 Representations of full formats in own locale is not in wide use and
 people don't even seem to know about them. Most of programs just happily
 uses incorrect ways to format datetimes in their templates and views, e.g.
 hardcoded finnish format "23.4.2007 13:25" or English format. But because
 Django '''already supports localed representations''' why not to give easy
 way to use them?
 
 One possibility is to create ''templatetags'' (similar as now tag) and
 ''filters'' (similar as date filter) for each of those ''hidden features''
 of Django. But I see it is more sane and natural to add these ''hidden
 features'' to the actual Formatters so using them is most common (e.g.
 syntax is similar as strftime's syntax).
 
 Please note, that Formatters '''already consists these types of full
 formats''' like:
  * `r` RFC 822 formatted date. 'Thu, 21 Dec 2000 16:01:07 +0200'
 
 So adding these common full formats to formatters does not collide with
 any "no full formats here" type of idea, which also backs up the idea
 adding these to the Formatters directly, rather than creating own
 templatetags and filters.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4121#comment:3>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to