AVR ATMEGA644 print Local time
The full C library is not available on embedded devices. Consult the avr-libc manual to see what's available.

In practice, if you want a real-time clock on an ATmega microcontroller, you will probably need to implement it yourself using a timer configured to fire once per second. (This will also mean you will need some way for the user to set the current time.)