| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/babel/__pycache__/ |
Upload File : |
�
ƪb�V � �� � d Z ddlZddlZddlmZ ddlmZmZmZm Z ddl
mZmZm
Z
mZ G d� d� � Z G d� d � � Z G d
� dej � � Z G d� d
eej � � ZdS )a-
babel.support
~~~~~~~~~~~~~
Several classes and functions that help with integrating and using Babel
in applications.
.. note: the code in this module is not used by Babel itself
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�Locale)�format_date�format_datetime�format_time�format_timedelta)�format_decimal�format_currency�format_percent�format_scientificc �` � e Zd ZdZdd�Zdd�Zdd�Zdd�Z dd�Zd
� Z dd�Z
d� Zdd�Zd� Z
dS )�FormataC Wrapper class providing the various date and number formatting functions
bound to a specific locale and time-zone.
>>> from babel.util import UTC
>>> from datetime import date
>>> fmt = Format('en_US', UTC)
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'
>>> fmt.decimal(1.2345)
u'1.234'
Nc �F � t j |� � | _ || _ dS )z�Initialize the formatter.
:param locale: the locale identifier or `Locale` instance
:param tzinfo: the time-zone info (a `tzinfo` instance or `None`)
N)r �parse�locale�tzinfo)�selfr r s �//usr/lib/python3/dist-packages/babel/support.py�__init__zFormat.__init__% s � � �l�6�*�*�������� �mediumc �0 � t ||| j �� � S )z�Return a date formatted according to the given pattern.
>>> from datetime import date
>>> fmt = Format('en_US')
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'
�r )r r )r �date�formats r r zFormat.date. s � � �4����<�<�<�<r c �<