def get_timestamp(self, **kwargs):
timestamp = kwargs.get('<STR_LIT>')<EOL>if not timestamp:<EOL><INDENT>now = datetime.datetime.utcnow()<EOL>timestamp = now.strftime("<STR_LIT>") + "<STR_LIT>" % (now.microsecond / <NUM_LIT:1000>) + "<STR_LIT>"<EOL><DEDENT>return timestamp<EOL>
Retrieves the timestamp for a given set of data