How do I get current unix time from ds3231 ?

Hello, I want to display unix time from rtc to the serial monitor and lcd display. I use DS3231 and arduino mega 2560. How do I get the current unix time from DS3231? And what library is used to do that ?
Thank you

Why not read the datasheet?

Or try this link.