def formatSrtTime(secTime):
	"""Convert a time in seconds (google's transcript) to srt time format."""
	sec, micro = str(secTime).split('.')
	m, s = divmod(int(sec), 60)
	h, m = divmod(m, 60)
	return "{:02}:{:02}:{:02},{}".format(h,m,s,micro)
Convert a time in seconds (google's transcript) to srt time format.
recipes/Python/577459_Convert_youtube_transcript_srt/recipe-577459.py