ölk

try something like the following in your sketch :

#include <DS3231.h> 
DS3231 myDs ;
. . .
. . .

Serial.println( myDs.unixtime()  ) ;
. . .
. . .