algor needed for SYSTEMTIME double

  • Thread starter Thread starter beginthreadex
  • Start date Start date
B

beginthreadex

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 !!!!!!
 
Does anyone have a good replacement for VariableTimeToSystemTime

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

Dave
 
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.
 
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
 
beginthreadex said:
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.
 
Back
Top