Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(13)  |  Derive(0)  |  Import(5)
Return the day names used by the locale for the specified format.

>>> get_day_names('wide', locale='en_US')[1]
u'Tuesday'
>>> get_day_names('abbreviated', locale='es')[1]
u'mar'
>>> get_day_names('narrow', context='stand-alone', locale='de_DE')[1]
u'D'

:param width: the width to use, one of "wide", "abbreviated", or "narrow"(more...)

        def get_day_names(width='wide', context='format', locale=LC_TIME):
    """Return the day names used by the locale for the specified format.

    >>> get_day_names('wide', locale='en_US')[1]
    u'Tuesday'
    >>> get_day_names('abbreviated', locale='es')[1]
    u'mar'
    >>> get_day_names('narrow', context='stand-alone', locale='de_DE')[1]
    u'D'

    :param width: the width to use, one of "wide", "abbreviated", or "narrow"
    :param context: the context, either "format" or "stand-alone"
    :param locale: the `Locale` object, or a locale string
    """
    return Locale.parse(locale).days[context][width]
        


src/b/l/bloodhound-HEAD/trac/trac/util/datefmt.py   bloodhound(Download)
    from babel import Locale
    from babel.core import LOCALE_ALIASES
    from babel.dates import (
        format_datetime as babel_format_datetime,
        format_date as babel_format_date,
        day_names = {}
        for width in ('wide', 'abbreviated', 'narrow'):
            names = get_day_names(width, locale=locale)
            day_names[width] = [names[(i + 6) % 7] for i in xrange(7)]
        return day_names

src/t/r/Trac-1.0.1/trac/util/datefmt.py   Trac(Download)
    from babel import Locale
    from babel.core import LOCALE_ALIASES
    from babel.dates import (
        format_datetime as babel_format_datetime,
        format_date as babel_format_date,
        day_names = {}
        for width in ('wide', 'abbreviated', 'narrow'):
            names = get_day_names(width, locale=locale)
            day_names[width] = [names[(i + 6) % 7] for i in xrange(7)]
        return day_names

src/t/r/trac-HEAD/trac/util/datefmt.py   trac(Download)
    from babel import Locale
    from babel.core import LOCALE_ALIASES, UnknownLocaleError
    from babel.dates import (
        format_datetime as babel_format_datetime,
        format_date as babel_format_date,
        day_names = {}
        for width in ('wide', 'abbreviated', 'narrow'):
            names = get_day_names(width, locale=locale)
            day_names[width] = [names[(i + 6) % 7] for i in xrange(7)]
        return day_names

src/n/a/nagare-0.4.1/nagare/i18n.py   nagare(Download)
          - the day names
        """
        return dates.get_day_names(width, context, self)
 
    def get_month_names(self, width='wide', context='format'):

src/f/j/fjord-HEAD/vendor/packages/Babel/tests/test_dates.py   fjord(Download)
def test_get_day_names():
    assert dates.get_day_names('wide', locale='en_US')[1] == u'Tuesday'
    assert dates.get_day_names('abbreviated', locale='es')[1] == u'mar'
    de = dates.get_day_names('narrow', context='stand-alone', locale='de_DE')
    assert de[1] == u'D'

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/tests/test_dates.py   ZenPacks.zenoss.OpenStack(Download)
def test_get_day_names():
    assert dates.get_day_names('wide', locale='en_US')[1] == u'Tuesday'
    assert dates.get_day_names('abbreviated', locale='es')[1] == u'mar'
    de = dates.get_day_names('narrow', context='stand-alone', locale='de_DE')
    assert de[1] == u'D'

src/b/a/Babel-1.3/tests/test_dates.py   Babel(Download)
def test_get_day_names():
    assert dates.get_day_names('wide', locale='en_US')[1] == u'Tuesday'
    assert dates.get_day_names('abbreviated', locale='es')[1] == u'mar'
    de = dates.get_day_names('narrow', context='stand-alone', locale='de_DE')
    assert de[1] == u'D'

src/s/q/SQLAlchemy-Utils-0.25.4/sqlalchemy_utils/i18n.py   SQLAlchemy-Utils(Download)
from .exceptions import ImproperlyConfigured
 
 
try:
    from babel.dates import get_day_names

src/s/q/sqlalchemy-utils-HEAD/sqlalchemy_utils/i18n.py   sqlalchemy-utils(Download)
from .exceptions import ImproperlyConfigured
 
 
try:
    from babel.dates import get_day_names