Package common :: Module fuzzyclock :: Class FuzzyClock
[hide private]
[frames] | no frames]

Class FuzzyClock

source code

Instance Methods [hide private]
 
fuzzy_time(self, fuzzyness, now) source code
Class Variables [hide private]
  HOUR_NAMES = [_('twelve'), _('one'), _('two'), _('three'), _('...
  FUZZY_TIME = [_("%(0)s o'clock"), _('five past %(0)s'), _('ten...
  FUZZY_DAYTIME = [_('Night'), _('Early morning'), _('Morning'),...
  FUZZY_WEEK = [_('Start of week'), _('Middle of week'), _('Midd...
Method Details [hide private]

fuzzy_time(self, fuzzyness, now)

source code 

Class Variable Details [hide private]

HOUR_NAMES

Value:
[_('twelve'), _('one'), _('two'), _('three'), _('four'), _('five'), _(\
'six'), _('seven'), _('eight'), _('nine'), _('ten'), _('eleven')]

FUZZY_TIME

Value:
[_("%(0)s o'clock"), _('five past %(0)s'), _('ten past %(0)s'), _('qua\
rter past %(0)s'), _('twenty past %(0)s'), _('twenty five past %(0)s')\
, _('half past %(0)s'), _('twenty five to %(1)s'), _('twenty to %(1)s'\
), _('quarter to %(1)s'), _('ten to %(1)s'), _('five to %(1)s'), _("%(\
1)s o'clock")]

FUZZY_DAYTIME

Value:
[_('Night'), _('Early morning'), _('Morning'), _('Almost noon'), _('No\
on'), _('Afternoon'), _('Evening'), _('Late evening'), _('Night')]

FUZZY_WEEK

Value:
[_('Start of week'), _('Middle of week'), _('Middle of week'), _('Midd\
le of week'), _('End of week'), _('Weekend!'), _('Weekend!')]