PageRenderTime 30ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/django/conf/locale/id/formats.py

https://code.google.com/p/mango-py/
Python | 47 lines | 35 code | 5 blank | 7 comment | 0 complexity | 7d22ccc790c35df0bd12aabc567b5c39 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. # -*- encoding: utf-8 -*-
  2. # This file is distributed under the same license as the Django package.
  3. #
  4. # The *_FORMAT strings use the Django date format syntax,
  5. # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  6. DATE_FORMAT = 'j N Y'
  7. DATETIME_FORMAT = "j N Y, G.i.s"
  8. TIME_FORMAT = 'G.i.s'
  9. YEAR_MONTH_FORMAT = 'F Y'
  10. MONTH_DAY_FORMAT = 'j F'
  11. SHORT_DATE_FORMAT = 'd-m-Y'
  12. SHORT_DATETIME_FORMAT = 'd-m-Y G.i.s'
  13. FIRST_DAY_OF_WEEK = 1 #Monday
  14. # The *_INPUT_FORMATS strings use the Python strftime format syntax,
  15. # see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
  16. DATE_INPUT_FORMATS = (
  17. '%d-%m-%y', '%d/%m/%y', # '25-10-09', 25/10/09'
  18. '%d-%m-%Y', '%d/%m/%Y', # '25-10-2009', 25/10/2009'
  19. '%d %b %Y', # '25 Oct 2006',
  20. '%d %B %Y', # '25 October 2006'
  21. )
  22. TIME_INPUT_FORMATS = (
  23. '%H.%M.%S', # '14.30.59'
  24. '%H.%M', # '14.30'
  25. )
  26. DATETIME_INPUT_FORMATS = (
  27. '%d-%m-%Y %H.%M.%S', # '25-10-2009 14.30.59'
  28. '%d-%m-%Y %H.%M', # '25-10-2009 14.30'
  29. '%d-%m-%Y', # '25-10-2009'
  30. '%d-%m-%y %H.%M.%S', # '25-10-09' 14.30.59'
  31. '%d-%m-%y %H.%M', # '25-10-09' 14.30'
  32. '%d-%m-%y', # '25-10-09''
  33. '%m/%d/%y %H.%M.%S', # '10/25/06 14.30.59'
  34. '%m/%d/%y %H.%M', # '10/25/06 14.30'
  35. '%m/%d/%y', # '10/25/06'
  36. '%m/%d/%Y %H.%M.%S', # '25/10/2009 14.30.59'
  37. '%m/%d/%Y %H.%M', # '25/10/2009 14.30'
  38. '%m/%d/%Y', # '10/25/2009'
  39. )
  40. DECIMAL_SEPARATOR = ','
  41. THOUSAND_SEPARATOR = '.'
  42. NUMBER_GROUPING = 3