Format time in one string

Can i format time in one string for a fit file?

i mean something like this:

this is just form minutes but i need seconds

ftpTime is in seconds

fTime.setData(ftpTime*60).format("%0d");