%Y, %m, and %d are format patterns for year, month, and day. %H, %M and %S are patterns for the time.

In the pattern, change %y to %Y to get a two-digit year and use print() to display f_time.

Psst: you can find more patterns in the Python documentation.