By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,331 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

algor needed for SYSTEMTIME double

P: n/a
Does anyone have a good replacement for VariableTimeToSystemTime ... which
is really just a double that's pushed with some math to a struct for the
day, year, second, etc. What I have is the double and really would like to
have it in a structure that have the milliseconds.

This would be EXTEMELY helpful !!!!!!
Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
>Does anyone have a good replacement for VariableTimeToSystemTime

Presumably you mean VariantTimeToSystemTime, but if so, why do you
need a replacement for it?

Dave
Nov 17 '05 #2

P: n/a
I have a date value in the form of a double. VariableTimeToSystemTime does
not convert the milliseconds or smaller. I would like to have these values
too. If there is someone with some math that already has this I would
appreciate using it. Getting smaller than a second is important to me and I
wish that VariableTimeToSystemTime would get an "Ex" version.
Does anyone have a good replacement for VariableTimeToSystemTime


Presumably you mean VariantTimeToSystemTime, but if so, why do you
need a replacement for it?


Nov 17 '05 #3

P: n/a
>I have a date value in the form of a double. VariableTimeToSystemTime does
not convert the milliseconds or smaller.


There is no Windows API function called VariableTimeToSystemTime -
it's VariantTimeToSystemTime.

However it appears that the milliseconds value is not present as you
say. Furthermore it appears that if the original double value was
obtained from the equivalent SystemTimeToVariantTime API, the ms
component of the floating point value is 0 anyway.

So, if you do some calculations on your double values (the definition
of the value is in the VariantTimeToSystemTime documentation), do they
actually have a ms component?

Dave
Nov 17 '05 #4

P: n/a
aa
"beginthreadex" <be***********@hotmail.com> wrote in message
news:uV*************@TK2MSFTNGP10.phx.gbl...
Does anyone have a good replacement for VariableTimeToSystemTime ... which
is really just a double that's pushed with some math to a struct for the
day, year, second, etc. What I have is the double and really would like to
have it in a structure that have the milliseconds.


You'll want to use SystemTimeToFileTime/FileTimeToSystemTime for millisecond
resolutions.
Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.