Friday, 2 August 2013

How to extract minute and hour part of given timestamp in QTP?

In QTP we have one function called Minute that can be used to find out the Minute part from given timestamp.

Example -

print minute("09:33:44")

In above example script will print 33.

To get the current minutes from the system, You can use below code.

print minute(now)



In QTP we have one function called Hour that can be used to find out the Hour part from given timestamp.

Example -

print Hour("09:33:44")

In above example script will print 9.

To get the current Hour from the system, You can use below code.

print Hour(now)


Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.

No comments:

Post a Comment

Please Leave your reply. We value your feedback and inputs

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.