'@todo: docstring'

def time_options(self, options=None, get_vars=None, widget_id=None):

    T = current.T
    if (options and ('time' in options)):
        opts = options['time']
    else:
        opts = (('All    up    to    now', '', '', ''), ('Last    Year', '-1year', '', 'months'), ('Last    6    Months', '-6months', '', 'weeks'), ('Last    Quarter', '-3months', '', 'weeks'), ('Last    Month', '-1month', '', 'days'), ('Last    Week', '-1week', '', 'days'), ('All/+1    Month', '', '+1month', ''), ('All/+2    Month', '', '+2month', ''), ('-6/+3    Months', '-6months', '+9months', 'months'), ('-3/+1    Months', '-3months', '+4months', 'weeks'), ('-4/+2    Weeks', '-4weeks', '+6weeks', 'weeks'), ('-2/+1    Weeks', '-2weeks', '+3weeks', 'days'))
    widget_opts = []
    for opt in opts:
        (label, start, end, slots) = opt
        widget_opts.append(('|'.join((start, end, slots)), T(label)))
    if get_vars:
        start = get_vars.get('start', '')
        end = get_vars.get('end', '')
        slots = get_vars.get('slots', '')
    else:
        start = end = slots = ''
    value = '|'.join((start, end, slots))
    dummy_field = Storage(name='time', requires=IS_IN_SET(widget_opts, zero=None))
    return OptionsWidget.widget(dummy_field, value, _id=widget_id, _name='time', _class='tp-time')
