If you have not chosen a library, install one and look at the included example sketches.
If you have chosen a library, use that library to fetch the current time. Some will return a string ready to print. Some rely on the Time library for formatting a string to print.
If you don't want to use a library and want to address the chip hardware, study the datasheet for the chip.