StartTime

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

StartTime

Postby celeiro » Mar 27 04 11:53 pm

How convert the format of starttime in the HISTORY to dd/mm/yy?, thanks. Sorry by my english.
celeiro
 
Posts: 6
Joined: Mar 27 04 11:45 pm

Postby Pascal » Mar 28 04 12:13 am

StartTime is calculated from a time_t value (Standard C) It is the number of seconds that have elapsed since 1 January, 1970. I can't remember the conversion offhand now, but I have an appropriate formula in the office.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby celeiro » Mar 30 04 3:54 am

thanks, can you say me the formula when you have time?
celeiro
 
Posts: 6
Joined: Mar 27 04 11:45 pm

Postby Pascal » Mar 30 04 2:38 pm

What app do you want to use it in ? (Easiest to do the conversion formula for that then ... )
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby celeiro » Mar 30 04 6:58 pm

yes, i want the easiest formula. Thanks
celeiro
 
Posts: 6
Joined: Mar 27 04 11:45 pm

Postby Pascal » Mar 30 04 8:47 pm

Well, if you want it for Excell, I can work it out in Excell. If you want it for Access, I can work it out for Access. Etc.

Hence - which application do you want it for ? Or is this for custom software ?

In which case, it's basically a question of dividing by the number of seconds per year, working with fractions, etc. until you come up with an answer.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby celeiro » Mar 30 04 9:40 pm

ah!, ok; for excel please.
celeiro
 
Posts: 6
Joined: Mar 27 04 11:45 pm


Return to WinGate

Who is online

Users browsing this forum: No registered users and 4 guests