from datetime import datetime as dt
from datetime import timedelta as td


def palindrome_time(lst):
    t1 = dt(1, 1, 1, lst[0], lst[1], lst[2])
    t2 = dt(1, 1, 1, lst[3], lst[4], lst[5])
    count = 0
    while t1 <= t2:
        if str(t1.time()) == str(t1.time())[::-1]:
            count += 1
        t1 += td(seconds=1)
    return count

e1b7ee1af665ef4e62d91d25d164a86a484c7673
<mask token>

<mask token>


def palindrome_time(lst):
    t1 = dt(1, 1, 1, lst[0], lst[1], lst[2])
    t2 = dt(1, 1, 1, lst[3], lst[4], lst[5])
    count = 0
    while t1 <= t2:
        if str(t1.time()) == str(t1.time())[::-1]:
            count += 1
        t1 += td(seconds=1)
    return count

from datetime import datetime as dt
from datetime import timedelta as td


def palindrome_time(lst):
    t1 = dt(1, 1, 1, lst[0], lst[1], lst[2])
    t2 = dt(1, 1, 1, lst[3], lst[4], lst[5])
    count = 0
    while t1 <= t2:
        if str(t1.time()) == str(t1.time())[::-1]:
            count += 1
        t1 += td(seconds=1)
    return count
