Workout With Friends Stay fit with a little motivation

- Main Page
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Properties
Functions
wowf.lib.filters Namespace Reference

## 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.

## Function Documentation

def wowf.lib.filters.datetimeformat | ( |  | value,
|  |  | format = `'%I:%M %p on %b %d'`,
|  |  | timezone = `None`
| ) |  |

Format the given datetime according to the given format.

Parameters

  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`
| ) |  |

Parameters

  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.

Parameters

  value | datetime instance

Definition at line 31 of file filters.py.