When you use Time it shouldn't come period like AM and PM. Can you re check in script the same. I assume this is correct as per my knowledge because the time stamp you gave me 0.021921 is the number. Here, We have to calculate manually for that like from number to Hour and Minutes and Seconds then we have to look whether our function is working or not.
Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)