SD Module - Writing timestamp to txt file & data from sensors

Thanks 4 support!

How can I change this function?

void timestamp(String) {
  int second = Clock.getSecond();
  int minute = Clock.getMinute();
  int hour = Clock.getHour(h12, PM);
  int date = Clock.getDate();
  int month = Clock.getMonth(Century);
  int year = Clock.getYear();

myTime = here I need to have this : "2017-10-28: 18:25"


  }

I tink I cant do "myFile.println(timestamp())" in this way.