Changing System Time or Date Will Temporarily Pause Clock (43331)
The information in this article applies to:
- The C Run-Time (CRT), when used with:
- Microsoft C for MS-DOS 5.1
- Microsoft C for MS-DOS 6.0
- Microsoft C for MS-DOS 6.0a
- Microsoft C for MS-DOS 6.0ax
- Microsoft C/C++ for MS-DOS 7.0
This article was previously published under Q43331 SUMMARY
The system clock temporarily pauses when the time or the date is set.
This feature prevents cases in which the date or time may need to be
updated during the actual time change. For example, an attempt to set
the system date exactly at midnight using _dos_setdate() will not
produce the desired effect if the system changes the date at the same
time it is being set. Therefore, the system clock pauses.
The effects of such a pause can be seen in the sample program that
follows. If you run this program, you will find upon exit that the
system time is the same as when the program was started.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kb16bitonly KB43331 |
---|
|