PageRenderTime 33ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/django/conf/locale/nl/formats.py

https://code.google.com/p/mango-py/
Python | 53 lines | 27 code | 2 blank | 24 comment | 0 complexity | 4e5101b550a40f67a76aa37cd4ec46c1 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 F Y' # '20 januari 2009'
  7. TIME_FORMAT = 'H:i' # '15:23'
  8. DATETIME_FORMAT = 'j F Y H:i' # '20 januari 2009 15:23'
  9. YEAR_MONTH_FORMAT = 'F Y' # 'januari 2009'
  10. MONTH_DAY_FORMAT = 'j F' # '20 januari'
  11. SHORT_DATE_FORMAT = 'j-n-Y' # '20-1-2009'
  12. SHORT_DATETIME_FORMAT = 'j-n-Y H:i' # '20-1-2009 15:23'
  13. FIRST_DAY_OF_WEEK = 1 # Monday (in Dutch 'maandag')
  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', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
  18. # '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
  19. # '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 09'
  20. )
  21. TIME_INPUT_FORMATS = (
  22. '%H:%M:%S', # '15:23:35'
  23. '%H.%M:%S', # '15.23:35'
  24. '%H.%M', # '15.23'
  25. '%H:%M', # '15:23'
  26. )
  27. DATETIME_INPUT_FORMATS = (
  28. # With time in %H:%M:%S :
  29. '%d-%m-%Y %H:%M:%S', '%d-%m-%y %H:%M:%S', '%Y-%m-%d %H:%M:%S', # '20-01-2009 15:23:35', '20-01-09 15:23:35', '2009-01-20 15:23:35'
  30. # '%d %b %Y %H:%M:%S', '%d %b %y %H:%M:%S', # '20 jan 2009 15:23:35', '20 jan 09 15:23:35'
  31. # '%d %B %Y %H:%M:%S', '%d %B %y %H:%M:%S', # '20 januari 2009 15:23:35', '20 januari 2009 15:23:35'
  32. # With time in %H.%M:%S :
  33. '%d-%m-%Y %H.%M:%S', '%d-%m-%y %H.%M:%S', # '20-01-2009 15.23:35', '20-01-09 15.23:35'
  34. # '%d %b %Y %H.%M:%S', '%d %b %y %H.%M:%S', # '20 jan 2009 15.23:35', '20 jan 09 15.23:35'
  35. # '%d %B %Y %H.%M:%S', '%d %B %y %H.%M:%S', # '20 januari 2009 15.23:35', '20 januari 2009 15.23:35'
  36. # With time in %H:%M :
  37. '%d-%m-%Y %H:%M', '%d-%m-%y %H:%M', '%Y-%m-%d %H:%M', # '20-01-2009 15:23', '20-01-09 15:23', '2009-01-20 15:23'
  38. # '%d %b %Y %H:%M', '%d %b %y %H:%M', # '20 jan 2009 15:23', '20 jan 09 15:23'
  39. # '%d %B %Y %H:%M', '%d %B %y %H:%M', # '20 januari 2009 15:23', '20 januari 2009 15:23'
  40. # With time in %H.%M :
  41. '%d-%m-%Y %H.%M', '%d-%m-%y %H.%M', # '20-01-2009 15.23', '20-01-09 15.23'
  42. # '%d %b %Y %H.%M', '%d %b %y %H.%M', # '20 jan 2009 15.23', '20 jan 09 15.23'
  43. # '%d %B %Y %H.%M', '%d %B %y %H.%M', # '20 januari 2009 15.23', '20 januari 2009 15.23'
  44. # Without time :
  45. '%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
  46. # '%d %b %Y', '%d %b %y', # '20 jan 2009', '20 jan 09'
  47. # '%d %B %Y', '%d %B %y', # '20 januari 2009', '20 januari 2009'
  48. )
  49. DECIMAL_SEPARATOR = ','
  50. THOUSAND_SEPARATOR = '.'
  51. NUMBER_GROUPING = 3