Re: Time and date



On 31 Mai, 07:30, raam <muthuramantrip...@xxxxxxxxx> wrote:
Hello all,
I am using Turbo c 2.1.

We don't do specific compilers here.

I have reqritten the timer interrupt in PC as per my requirement.When

We don't do timer interrupts here.

I use gettime() and getdate()
in my program leter I am not getting current time and date.

We don't support non-standard C functions.

How to get the Time and Date directly from the CMOS.

We don't access CMOS here.

Short answer:
Easy on DOS, more difficult on a modern Windows box.

Check the IBM-PC spec on CMOS, depending on which OS you use, the "C
code" will vary, except beeing off-topic here.

The best place to ask, might be in an assembler programming group
(they can do C snippets as well).

--
Tor

.