#NEWLINE# def get_timestamp( self , **kwargs ) : #NEWLINE# #INDENT# 'Retrieves the timestamp for a given set of data' #NEWLINE# timestamp = kwargs . get ( 'timestamp' ) #NEWLINE# if ( not timestamp ) : #NEWLINE# #INDENT# now = datetime . datetime . utcnow ( ) #NEWLINE# timestamp = ( ( now . strftime ( '%Y-%m-%dT%H:%M:%S' ) + ( '.%03d' % ( now . microsecond / 1000 ) ) ) + 'Z' ) #NEWLINE# #UNINDENT# return timestamp