Package pytils :: Module dt
[show private | hide private]
[frames | no frames]

Module pytils.dt

Russian dates without locales
Function Summary
unicode distance_of_time_in_words(from_time, accuracy, to_time)
Represents distance of time in words
unicode ru_strftime(format, dt, inflected)
Russian strftime without locale

Function Details

distance_of_time_in_words(from_time, accuracy=1, to_time=None)

Represents distance of time in words
Parameters:
from_time - source time (in seconds from epoch)
           (type=int or float)
accuracy - level of accuracy (1..3), default=1
           (type=int)
to_time - target time (in seconds from epoch), default=None translates to current time
           (type=int or float)
Returns:
distance of time in words
           (type=unicode)
Raises:
AssertionError - input parameters' check failed

ru_strftime(format=u'%d.%m.%Y', dt=None, inflected=False)

Russian strftime without locale
Parameters:
format - strftime format, default=u'%d.%m.%Y'
           (type=unicode)
dt - date value, default=None translates to today
           (type=datetime.date or datetime.datetime)
Returns:
strftime string
           (type=unicode)
Raises:
AssertionError - input parameters' check failed

Generated by Epydoc 2.1 on Sat Sep 2 23:16:44 2006 http://epydoc.sf.net