/usr/share/pyshared/zc.i18n-0.7.0.egg-info/PKG-INFO is in python-zc.i18n 0.7.0-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | Metadata-Version: 1.1
Name: zc.i18n
Version: 0.7.0
Summary: Additional I18n Support APIs
Home-page: http://cheeseshop.python.org/pypi/zc.i18n
Author: Zope Corporation and Contributors
Author-email: zope3-dev@zope.org
License: ZPL 2.1
Description: This package provides additional I18n and L10n features. In particular it
provides an API to compute the time duratrions over various timezones.
Detailed Dcoumentation
======================
=========================
Time Duration Computation
=========================
The duration format code is not ideal, but as the code notes, the icu library
does not appear to support internationalizing dates. Therefore, this approach
tries to get close enough to be flexible enough for most localization. Only
time, and localizers, will tell if it is a reasonable approach.
The formatter always gives the first two pertinent measures of a duration,
leaving off the rest. The rest of the file just shows some examples.
>>> from zc.i18n.duration import format
>>> from zope.publisher.browser import TestRequest
>>> request = TestRequest()
>>> from datetime import timedelta
>>> format(request, timedelta(days=5))
u'5 days '
>>> format(request, timedelta(days=1))
u'1 day '
>>> format(request, timedelta(days=1, hours=13, minutes=12))
u'1 day 13 hours '
>>> format(request, timedelta(hours=13, minutes=12))
u'13 hours 12 minutes '
>>> format(request, timedelta(hours=13))
u'13 hours '
>>> format(request, timedelta(hours=1, minutes=1, seconds=1))
u'1 hour 1 minute '
>>> format(request, timedelta(minutes=45, seconds=1))
u'45 minutes 1 second'
>>> format(request, timedelta(seconds=5))
u'5 seconds'
>>> format(request, timedelta(days=-1, hours=-2))
u'-1 day -2 hours '
>>> format(request, timedelta(days=-2, hours=22))
u'-1 day -2 hours '
>>> format(request, timedelta(days=-1))
u'-1 day '
>>> format(request, timedelta(days=-1, hours=-13, minutes=-12))
u'-1 day -13 hours '
>>> format(request, timedelta(hours=-13, minutes=-12))
u'-13 hours -12 minutes '
>>> format(request, timedelta(hours=-13))
u'-13 hours '
>>> format(request, timedelta(hours=-1, minutes=-1, seconds=-1))
u'-1 hour -1 minute '
>>> format(request, timedelta(minutes=-45, seconds=-1))
u'-45 minutes -1 second'
>>> format(request, timedelta(seconds=-5))
u'-5 seconds'
>>> format(request, timedelta())
u'No time'
=======
CHANGES
=======
0.7.0 (2009-07-24)
------------------
- Fixed tests to work with latest package versions.
- The buildout now also pulls in the test extras, which is required.
0.6.1 (2008-05-20)
------------------
- No code changes, and only a very minor documentation tweak.
Re-released to avoid confusion over package versions found in the wild.
0.5.2 (2007-11-03)
------------------
- Improve package data.
0.5.1 (2006-05-24)
------------------
- Package data update.
0.5.0 (2006-05-24)
------------------
- Initial release.
Keywords: zope3 i18n date time duration
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Framework :: Zope3
|