wheezy.validation / src / wheezy / validation / format.py

""" ``format`` module.
"""


# thousands separator
thousands_separator = lambda gettext: gettext(',')
# decimal point separator
decimal_separator = lambda gettext: gettext('.')
# default date input format: 2008/5/18.
default_date_input_format = lambda gettext: gettext('%Y/%m/%d')
# fallback date input formats: 5/18/2008. Use | to separate multiple values.
fallback_date_input_formats = lambda gettext: gettext(
    '%m/%d/%Y|%Y-%m-%d|%m/%d/%y')
# default time input format: 16:34.
default_time_input_format = lambda gettext: gettext('%H:%M')
# fallback time input formats: 16:34:52. Use | to separate multiple values.
fallback_time_input_formats = lambda gettext: gettext('%H:%M:%S')
# default datetime input format: 2008/5/18 16:34
default_datetime_input_format = lambda gettext: gettext('%Y/%m/%d %H:%M')
# fallback datetime input formats: 2008/5/18 16:34:52. Use | to separate.
fallback_datetime_input_formats = lambda gettext: gettext(
    '%Y/%m/%d %H:%M:%S|%m/%d/%Y %H:%M|%m/%d/%Y %H:%M:%S|'
    '%Y-%m-%d %H:%M|%Y-%m-%d %H:%M:%S|%m/%d/%y %H:%M|%m/%d/%y %H:%M:%S')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.