XofCDe3rd
Technical User
- Nov 9, 2003
- 120
I want to use a method called DecodeTime() in the TDateTime class, but I am not doing something right.....
I looked up help on it and still cannot work out how to use it
the main reason I want to use this method is that it splits a TDateTime Object into hours, mins, secs,milli secs.
Def of method(from C-Builder)
==============================
void __fastcall DecodeTime(unsigned short* hour, unsigned short* min, unsigned short* sec, unsigned short* msec) const;
my question is how do i get to use hour min sec and msec
I Think I have made a mistake but I as a test I created used TDateTime T and tried to use the Decode Time on T.CurrentTime()(another method to return current system time)and creating temporary variables to store the hours etc.....any help would be most appreciated
TDownAndOut
I looked up help on it and still cannot work out how to use it
the main reason I want to use this method is that it splits a TDateTime Object into hours, mins, secs,milli secs.
Def of method(from C-Builder)
==============================
void __fastcall DecodeTime(unsigned short* hour, unsigned short* min, unsigned short* sec, unsigned short* msec) const;
my question is how do i get to use hour min sec and msec
I Think I have made a mistake but I as a test I created used TDateTime T and tried to use the Decode Time on T.CurrentTime()(another method to return current system time)and creating temporary variables to store the hours etc.....any help would be most appreciated
TDownAndOut