GPS time/date to DS3231

Use the time library. Look at the examples there.