Home | Trees | Indices | Help |
---|
|
|
|||
|
distance_of_time(from_time,
accuracy=1) Display distance of time from current time. |
||
|
ru_strftime(date,
format="%d.%m.%Y",
inflected_day=False) Russian strftime, formats date with given format. |
||
|
ru_strftime_inflected(date,
format="%d.%m.%Y",
inflected_day=True) Russian strftime with inflected day, formats date with given format (similar to ru_strftime), also inflects day in proper form. |
|
|||
|
__revision__ = '$Id: pytils_dt.py 29 2006-10-21 08:28:27Z the.pythy $'
|
||
|
__id__ = '$Id: pytils_dt.py 29 2006-10-21 08:28:27Z the.pythy $'
|
||
|
__url__ = '$URL: https://pythy.googlecode.com/svn/trunk/pytils...
|
||
|
register = <django.template.Library object at 0xb7aad6ec> Django template tag/filter registrator |
||
|
encoding = 'utf-8' Current charset (sets in Django project's settings) |
||
|
debug = True Debug mode (sets in Django project's settings) |
||
|
show_value = False Show values on errors (sets in Django project's settings) |
||
|
default_value = 'unknown: %(error)s'
|
||
|
default_uvalue = u'unknown: %(error)s'
|
|
Display distance of time from current time. Parameter is an accuracy level (deafult is 1). Value must be numeral (i.e. time.time() result) or datetime.datetime (i.e. datetime.datetime.now() result). Examples:{{ some_time|distance_of_time }} {{ some_dtime|distance_of_time:2 }} |
Russian strftime, formats date with given format. Value is a date (supports datetime.date and datetime.datetime), parameter is a format (string). For explainings about format, see documentation for original strftime: http://docs.python.org/lib/module-time.html Examples:{{ some_date|ru_strftime:"%d %B %Y, %A" }} |
Russian strftime with inflected day, formats date with given format (similar to ru_strftime), also inflects day in proper form. Examples:{{ some_date|ru_strftime_inflected:"in %A (%d %B %Y)" |
|
__revision__None
|
__id__None
|
__url__None
|
registerDjango template tag/filter registrator
|
encodingCurrent charset (sets in Django project's settings)
|
debugDebug mode (sets in Django project's settings)
|
show_valueShow values on errors (sets in Django project's settings)
|
default_valueNone
|
default_uvalueNone
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Sun Oct 29 00:35:02 2006 | http://epydoc.sourceforge.net |