from datetime import datetime


def times(fields):
    """Return a starting and ending datetime, given `fields` like:

    [u'CLOCK:', u'[2013-03-08', u'Fri', u'14:24]--[2013-03-08', u'Fri',
     u'15:41]', u'=>', u'1:17']

    """
    return (datetime.strptime(fields[1] + fields[3][:5], u'[%Y-%m-%d%H:%M'),
            datetime.strptime(fields[3][9:] + fields[5], u'%Y-%m-%d%H:%M]'))