def time_to_str(time_in_seconds):
    """
    Takes a time in Seconds and converts it to a string displaying it
        in Years, Days, Hours, Minutes, Seconds.
    """
    seconds = time_in_seconds
    minutes = None
    hours = None
    days = None
    years = None

    if seconds > 60:
        minutes = seconds // 60
        seconds -= (seconds / 60)

    if minutes and minutes > 60:
        hours = minutes // 60
        minutes %= 60

    if hours and hours > 24:
        days = hours // 24
        hours %= 24

    if days and days > 365:
        years = days // 365
        days %= 365

    s = ''

    if years:
        s += '{:d} Year(s), '.format(int(years))
    if days:
        s += '{:d} Day(s), '.format(int(days))
    if hours:
        s += '{:d} Hour(s), '.format(int(hours))
    if minutes:
        s += '{:d} Minute(s)'.format(int(minutes))
        s += (', ' if hours else ' ') + 'and '

    s += '{:0.3f} Second(s)'.format(seconds)

    return s