There are several date/time functions in Borland/Inprise C++. They are prototyped in SYSUTILS.HPP. For some time functions, you have:<br><br><b>TDateTime EncodeTime(Word Hour, Word Min, Word Sec, Word MSec)</b> which encodes the hour, minute, second, and millisecond and returns a <i>TDateTime</i>.<br><br><b>void DecodeTime(TDateTime Time, Word &Hour, Word &Min, Word &Sec, Word &MSec)</b> reverses the previous function.<br><br><b>TDateTime Time(void)</b> returns the current system time.<br><br><b>AnsiString TimeToStr(TDateTime Time)</b> converts a <i>TDateTime</i> to an <i>AnsiString</i>.<br><br><b>TDateTime StrToTime(const AnsiString S)</b> reverses the above function.<br><br> In addition, you can several variables you can change that deal with functions including <i>TimeSeparator, TimeAMString, TimePMString, ShortTimeFormat, and LongTimeFormat</i>.<br> <p>James P. Cottingham<br><a href=mailto: > </a><br><a href=
Or else just include the time.h file . <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.