I'm trying to take a TDateTime Value (like 38073.1164814815, converts to something like 3/27/2004 2:48:43 AM)
and I need to set that date and time value to the system clock.
I know of no functions to set the system time in windows, I did check around and found a function settime but it only accepts std::time and I don't know how to convert a TDateTime because I know nothing about the std::time value.
If you know of a way to set the system clock using the TDateTime or of a way to convert TDateTime to std::time then please let me know!
Thank you,
Ruggie
P.S. - Using Borland C++ Builder 6 if it helps.
and I need to set that date and time value to the system clock.
I know of no functions to set the system time in windows, I did check around and found a function settime but it only accepts std::time and I don't know how to convert a TDateTime because I know nothing about the std::time value.
If you know of a way to set the system clock using the TDateTime or of a way to convert TDateTime to std::time then please let me know!
Thank you,
Ruggie
P.S. - Using Borland C++ Builder 6 if it helps.