Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(7) | Call(7) | Derive(0) | Import(0)
Return the quarter names used by the locale for the specified format. >>> get_quarter_names('wide', locale='en_US')[1] u'1st quarter' >>> get_quarter_names('abbreviated', locale='de_DE')[1] u'Q1' :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
def get_quarter_names(width='wide', context='format', locale=LC_TIME): """Return the quarter names used by the locale for the specified format. >>> get_quarter_names('wide', locale='en_US')[1] u'1st quarter' >>> get_quarter_names('abbreviated', locale='de_DE')[1] u'Q1' :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).quarters[context][width]
- the quarter names """ return dates.get_quarter_names(width, context, self) def get_era_names(self, width='wide'):
src/f/j/fjord-HEAD/vendor/packages/Babel/tests/test_dates.py fjord(Download)
def test_get_quarter_names(): assert dates.get_quarter_names('wide', locale='en_US')[1] == u'1st quarter' assert dates.get_quarter_names('abbreviated', locale='de_DE')[1] == u'Q1'
src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/tests/test_dates.py ZenPacks.zenoss.OpenStack(Download)
def test_get_quarter_names(): assert dates.get_quarter_names('wide', locale='en_US')[1] == u'1st quarter' assert dates.get_quarter_names('abbreviated', locale='de_DE')[1] == u'Q1'
src/b/a/Babel-1.3/tests/test_dates.py Babel(Download)
def test_get_quarter_names(): assert dates.get_quarter_names('wide', locale='en_US')[1] == u'1st quarter' assert dates.get_quarter_names('abbreviated', locale='de_DE')[1] == u'Q1'