Workout With Friends
Stay fit with a little motivation
|
Functions | |
def | datetimeformat |
Format the given datetime according to the given format. | |
def | timesince |
Show the elapsed time since the given datetime. | |
def | pluralize |
def | groupbydate |
Group items by date. |
def wowf.lib.filters.datetimeformat | ( | value, | |
format = '%I:%M %p on %b %d' , |
|||
timezone = None |
|||
) |
Format the given datetime according to the given format.
value | datetime instance |
timezone | Timezone to convert to before rendering |
Definition at line 19 of file filters.py.
def wowf.lib.filters.groupbydate | ( | value | ) |
Group items by date.
Definition at line 49 of file filters.py.
def wowf.lib.filters.pluralize | ( | value, | |
singular, | |||
plural, | |||
with_number = True |
|||
) |
value | Number of items |
singular | Singular form of items |
plural | Plural form of items |
Definition at line 41 of file filters.py.
def wowf.lib.filters.timesince | ( | value, | |
asdays = False , |
|||
short = True |
|||
) |
Show the elapsed time since the given datetime.
value | datetime instance |
Definition at line 31 of file filters.py.