#NEWLINE# def convertTimeStamp( absoluteBaselineTime , secondsAfterBaseline ) : #NEWLINE# #INDENT# offsetTime = ( absoluteBaselineTime + secondsAfterBaseline ) #NEWLINE# offsetTimeTuple = time . gmtime ( offsetTime ) #NEWLINE# offsetTimeString = time . strftime ( '%Y-%m-%dT%H:%M:%S+0000' , offsetTimeTuple ) #NEWLINE# fractionSecondsString = ( '%.3f' % ( secondsAfterBaseline - math . floor ( secondsAfterBaseline ) ) ) #NEWLINE# retval = offsetTimeString . replace ( '+' , ( fractionSecondsString [ 1 : ] + '+' ) ) #NEWLINE# return retval