~ubuntu-branches/ubuntu/trusty/python-babel/trusty

« back to all changes in this revision

Viewing changes to docs/api/dates.rst

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-10-28 10:11:31 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131028101131-zwbmm8sc29iemmlr
Tags: 1.3-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules: Run the testsuite during builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Date and Time
 
2
=============
 
3
 
 
4
.. module:: babel.dates
 
5
 
 
6
The date and time functionality provided by Babel lets you format standard
 
7
Python `datetime`, `date` and `time` objects and and work with timezones.
 
8
 
 
9
Date and Time Formatting
 
10
------------------------
 
11
 
 
12
.. autofunction:: format_datetime
 
13
 
 
14
.. autofunction:: format_date
 
15
 
 
16
.. autofunction:: format_time
 
17
 
 
18
.. autofunction:: format_timedelta
 
19
 
 
20
Timezone Functionality
 
21
----------------------
 
22
 
 
23
.. autofunction:: get_timezone
 
24
 
 
25
.. autofunction:: get_timezone_gmt
 
26
 
 
27
.. autofunction:: get_timezone_location
 
28
 
 
29
.. autofunction:: get_timezone_name
 
30
 
 
31
.. autofunction:: get_next_timezone_transition
 
32
 
 
33
.. data:: UTC
 
34
 
 
35
    A timezone object for UTC.
 
36
 
 
37
.. data:: LOCALTZ
 
38
 
 
39
    A timezone object for the computer's local timezone.
 
40
 
 
41
Data Access
 
42
-----------
 
43
 
 
44
.. autofunction:: get_period_names
 
45
 
 
46
.. autofunction:: get_day_names
 
47
 
 
48
.. autofunction:: get_month_names
 
49
 
 
50
.. autofunction:: get_quarter_names
 
51
 
 
52
.. autofunction:: get_era_names
 
53
 
 
54
.. autofunction:: get_date_format
 
55
 
 
56
.. autofunction:: get_datetime_format
 
57
 
 
58
.. autofunction:: get_time_format
 
59
 
 
60
Basic Parsing
 
61
-------------
 
62
 
 
63
.. autofunction:: parse_date
 
64
 
 
65
.. autofunction:: parse_time
 
66
 
 
67
.. autofunction:: parse_pattern