library RTC M41T00 and Arduino Mega

Hi guys,

Im using RTC M41T00 with Arduino Mega 2560, the problem is that i found no Libary for this RTC and as I m very new to C and programming I m kind of stuck Ive been searching for days and read the Application Note but nothing helps, it would be so nice of u if u could share your code or libary.

Thanks for ur help