Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LocalTimeToUnixTime function for WinRunner

Status
Not open for further replies.

DukeC

Programmer
Jan 27, 2005
3
0
0
DE
Hi,

I'm searching for a function calculating the unix time out of given date and time.

Thanks in advance for your help

Duke C.
 
Hi Duke.

Excuse the ignorance, but what exactly is Unix Time??

Cheers
Dave

"Probably the only Test Analyst on Tek-Tips"

Take a look at Forum1393 & sign up if you'd like
 
Unix time are the seoconds from 1.1.1970 00.00. There are a lot of functions to calculate UnixTime (only seconds)-> LocalTime (Date & Time). But try to find another way ?? I'm only inerested in WinRunner-Implementation or Win32-Api.

Bye
Duke
 
I can see you'd want to count the number of days passed between today's date and 01/01/1900 and multiply that by 24*60*60. Then you'd have to grab the current system time, convert it into seconds and add it to the total.

Is this what you want to do?

This can be done in WR (or any language) pretty easily.

What are you trying to do with this?

Dave

"Probably the only Test Analyst on Tek-Tips"

Take a look at Forum1393 & sign up if you'd like
 
Hi Dave,

thanks a lot for your help, but meanwhile I found a lib "QSI Date Functions" at Mercury.

Best regards
Duke
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top