parameters: (obj)
return_statement: return obj.strftime('%d-%b-%y %I:%M:%S.%f %p') if isinstance(obj, datetime.datetime) else obj
docstring: Takes a datetime object and outputs a timestamp string with the format Y-m-d H:m:S.f
docstring_summary: Takes a datetime object and outputs a timestamp string with the format Y-m-d H:m:S.f
docstring_tokens: Takes a datetime object and outputs a timestamp string with the format Y - m - d H : m : S . f
function: def to_timestamp(obj):
      """
      Takes a datetime object and outputs a timestamp string with the format Y-m-d H:m:S.f
      """
      return obj.strftime('%d-%b-%y %I:%M:%S.%f %p') if isinstance(obj, datetime.datetime) else obj
function_tokens: def to_timestamp ( obj ) : return obj . strftime ( '%d-%b-%y %I:%M:%S.%f %p' ) if isinstance ( obj , datetime . datetime ) else obj