I want to create a function which calculate the time difference between two times.
For example I am sending times as
timedifference(1 AM,5 PM);
How could I calculate the time difference between 1PM to 5PM?
Can anyone help me?
Thanks in advance.
Here is the answer I want:
Usage of this function as: