def do_slice(value, slices, fill_with=None):
    seq = list(value)
    length = len(seq)
    items_per_slice = length // slices
    slices_with_extra = length % slices
    offset = 0
    for slice_number in xrange(slices):
        start = offset + slice_number * items_per_slice
        if slice_number < slices_with_extra:
            offset += 1
        end = offset + (slice_number + 1) * items_per_slice
        tmp = seq[start:end]
        if fill_with is not None and slice_number >= slices_with_extra:
            tmp.append(fill_with)
        yield tmp
Converts a time in usec since the epoch to seconds since the epoch.
dataset/ETHPy150Open IanLewis/kay/kay/lib/jinja2/filters.py/do_slice--crossover with--dataset/ETHPy150Open AppScale/appscale/AppTaskQueue/tq_lib.py/_usec_to_sec