Code for getting the time difference in QTP is given in below example.
time_difference =datediff("n",time_stamp1, time_stamp2)
Here datediff function is used to calculate the difference between 2 time variables.
First parameter of datediff is used to indicate time parameter like hours, minutes or seconds.
time_difference =datediff("n",time_stamp1, time_stamp2)
Here datediff function is used to calculate the difference between 2 time variables.
First parameter of datediff is used to indicate time parameter like hours, minutes or seconds.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs