Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Feb 25, 2014

Date and time in a Windows program using C

To get the date and time in a Windows program, you should call the standard C library functions time() and localtime() or some derivative (asctime(), ctime(), _ftime(), gmttime()). These functions are compatible with both DOS and Windows. You should never attempt to call a DOS-only or a ROM BIOS function directly. You should always use either Windows API function calls or standard C library routines.