Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Manipulate SYSTEMTIME ?

2 views
Skip to first unread message

Stephane Paquin

unread,
Jul 8, 1999, 3:00:00 AM7/8/99
to

Hi!

I try to add/substract a number of days(or hours ,minutes
,seconds) to a SYSTEMTIME time. How do you d that using the Win32 API?

I am using Digital Visual Fortran and don´t have access to 64
bit integers. What can I do ?

I know that VB has built-in functions to do that. VC has a
TIME class to manipulate time. It seems that Win32 api doesn´t do time
manipulation.

Thank you.

Stéphane Paquin
stephan...@ispatnet.comz

Zou Ying

unread,
Jul 8, 1999, 3:00:00 AM7/8/99
to
Can FileTimeToSysTime do?


Stephane Paquin <stephan...@ispatnet.com> wrote in message
news:3784a5d5...@news.interlink.net...

Stephane Paquin

unread,
Jul 8, 1999, 3:00:00 AM7/8/99
to

FileTimeToSystemTime only transforms a time value from FILETIME to
SYSTEMTIME structure. I still have not added or substracted days (or
hours ,minutes, seconds...).

Even if I transform to FILETIME, how can I manipulate the time
to add or substract ? Remember I don´t have access to quadwords in
DVF. It seems to me there is a big hole in Win32 api.

Stéphane Paquin
stephan...@ispatnet.comz

Felix Kasza [MVP]

unread,
Jul 8, 1999, 3:00:00 AM7/8/99
to
Stephane,

> I am using Digital Visual Fortran and don´t have access to 64
> bit integers. What can I do ?

(a) write a DLL in some other language

(b) regard the 64bit int as two 32bit unsigned ints:
total = hiword*2**32 + loword

--

Cheers,

Felix.

If you post a reply, kindly refrain from emailing it, too.
Note to spammers: fel...@mvps.org is my real email address.
No anti-spam address here. Just one comment: IN YOUR FACE!

0 new messages