Your IP : 3.145.43.200
�
Q�Dgf � �8 � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
mZmZ ddl
mZ ddlmZmZmZmZ ddlmZmZmZmZmZmZ e
rdd lmZ dd
lmZ G d� d� � Z G d
� d� � Z G d� dej � � Z G d� de ej! � � Z"dS )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-2023 by the Babel Team.
:license: BSD, see LICENSE for more details.
� )�annotationsN)�Iterator)�
TYPE_CHECKING�Any�Callable)�Locale)�format_date�format_datetime�format_time�format_timedelta)�format_compact_currency�format_compact_decimal�format_currency�format_decimal�format_percent�format_scientific)�Literal)�_PredefinedTimeFormatc � � e Zd ZdZd6d7d �Z d8d9d�Z d8d:d�Z d8d;d�Z d<d=d#�Zd>d&�Z d6d?d(�Z
d@dAd/�ZdBd1�Z d@dCd3�Z
d6d?d4�Zd>d5�ZdS )D�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'
N�locale�Locale | str�tzinfo�datetime.tzinfo | None�return�Nonec �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 �parser r )�selfr r s �m/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/babel/support.py�__init__zFormat.__init__4 s � � �l�6�*�*�������� �medium�date�datetime.date | None�format�_PredefinedTimeFormat | str�strc �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 r$ r&