def starttime(t):
    """
Fixes the start time of observations taken with LAT. This assumes that the
time array in your light curve is in days already, and the beginning of
your analysis coincides with t0 for LAT.

:param t: array with input times given in days, with t0 coinciding with the beginning of LAT
:returns: t (days), t (years)
    """
    import pendulum
    tp = pendulum.create(2008, 8, 4, 15, 43, 37) - pendulum.create(2008, 1, 1)
    t0 = tp.days
    t = t - t[0] + t0
    ty = 2008.0 + t / 365.0
    return t, ty
