C
could.net
I met across a datetime problem when I tried to translate some delphi
code to cpp.
There's a struct called TTimeStamp in delphi,
and this is the cpp equivalent:
struct TTimeStamp
{
int Time; // the number of milliseconds that have elapsed since
midnight
int Date; // the number of days since 1/1/0001 plus one
};
My question is, I can only get the current date and time in cpp,
how can I figure out the corresponding TTimeStamp of the current time?
Thanks!
code to cpp.
There's a struct called TTimeStamp in delphi,
and this is the cpp equivalent:
struct TTimeStamp
{
int Time; // the number of milliseconds that have elapsed since
midnight
int Date; // the number of days since 1/1/0001 plus one
};
My question is, I can only get the current date and time in cpp,
how can I figure out the corresponding TTimeStamp of the current time?
Thanks!