Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Lithuanian date and time localization.

  • Loading branch information...
commit d596deef176b907575bad921baf36661d0959850 1 parent f1bdfbd
@frgtn frgtn authored
Showing with 29 additions and 12 deletions.
  1. +29 −12 django/conf/locale/lt/formats.py
View
41 django/conf/locale/lt/formats.py
@@ -4,20 +4,37 @@
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
-DATE_FORMAT = r'Y \m. F j \d.'
-TIME_FORMAT = 'H:i:s'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
-# MONTH_DAY_FORMAT =
-SHORT_DATE_FORMAT = 'Y.m.d'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+DATE_FORMAT = r'Y \m. E j \d.' # '2006 m. spalio 25 d.'
+TIME_FORMAT = 'H:i' # '14:30'
+DATETIME_FORMAT = r'Y \m. E j \d. H:i' # '2006 m. spalio 25 d. 14:30'
+YEAR_MONTH_FORMAT = r'Y F' # '2006 spalis'
+MONTH_DAY_FORMAT = r'E j' # 'spalio 25'
+SHORT_DATE_FORMAT = 'Y-m-d' # '2006-10-25'
+SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # '2006-10-25 14:30'
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+DATE_INPUT_FORMATS = (
+ '%Y-%m-%d', # '2006-10-25'
+ '%Y %m %d', # '2006 10 25'
+ '%Y.%m.%d', # '2006.10.25'
+)
+TIME_INPUT_FORMATS = (
+ '%H:%M:%S', # '14:30:59'
+ '%H:%M', # '14:30'
+)
+DATETIME_INPUT_FORMATS = (
+ '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
+ '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
+ '%Y-%m-%d', # '2006-10-25'
+ '%Y %m %d %H:%M:%S', # '2006 10 25 14:30:59'
+ '%Y %m %d %H:%M', # '2006 10 25 14:30'
+ '%Y %m %d', # '2006 10 25'
+ '%Y.%m.%d %H:%M:%S', # '2006.10.25 14:30:59'
+ '%Y.%m.%d %H:%M', # '2006.10.25 14:30'
+ '%Y.%m.%d', # '2006.10.25'
+)
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = '.'
+THOUSAND_SEPARATOR = ' '
# NUMBER_GROUPING =
Please sign in to comment.
Something went wrong with that request. Please try again.