parameters: (datetime_obj)
return_statement: return dtobj
docstring: Return the string formatted timestamp for a given datetime object.
      We assume that the datetime object is in the UTC timezone
      Return format = '<YYYY>-<mm>-<dd>T<HH>:<MM>:<SS.SSS>Z'
      where YYYY = 4 digit year
          mm = 2 digit month
          dd = 2 digit date
          HH = 2 digit hour ( 0  to 23 )
          HH = 2 digit minute ( 0  to 59 )
          SS.SSS = Seconds (upto millisecond accuracy, 00.000 to 59.999)
          Z signifies the UTC time-zone
      Returns:
          [string] -- Timestamp string
docstring_summary: Return the string formatted timestamp for a given datetime object.
      We assume that the datetime object is in the UTC timezone
      Return format = '<YYYY>-<mm>-<dd>T<HH>:<MM>:<SS.SSS>Z'
      where YYYY = 4 digit year
          mm = 2 digit month
          dd = 2 digit date
          HH = 2 digit hour ( 0  to 23 )
          HH = 2 digit minute ( 0  to 59 )
          SS.SSS = Seconds (upto millisecond accuracy, 00.000 to 59.999)
          Z signifies the UTC time-zone
      Returns:
          [string] -- Timestamp string
docstring_tokens: Return the string formatted timestamp for a given datetime object . We assume that the datetime object is in the UTC timezone Return format = <YYYY > - <mm > - <dd > T<HH > : <MM > : <SS . SSS > Z where YYYY = 4 digit year mm = 2 digit month dd = 2 digit date HH = 2 digit hour ( 0 to 23 ) HH = 2 digit minute ( 0 to 59 ) SS . SSS = Seconds ( upto millisecond accuracy 00 . 000 to 59 . 999 ) Z signifies the UTC time - zone Returns : [ string ] -- Timestamp string
function: def get_timestamp_str(datetime_obj):
      """Return the string formatted timestamp for a given datetime object.
      We assume that the datetime object is in the UTC timezone
      Return format = '<YYYY>-<mm>-<dd>T<HH>:<MM>:<SS.SSS>Z'
      where YYYY = 4 digit year
          mm = 2 digit month
          dd = 2 digit date
          HH = 2 digit hour ( 0  to 23 )
          HH = 2 digit minute ( 0  to 59 )
          SS.SSS = Seconds (upto millisecond accuracy, 00.000 to 59.999)
          Z signifies the UTC time-zone
      Returns:
          [string] -- Timestamp string
      """
      (dtobj, micro) = datetime_obj.strftime('%Y-%m-%dT%H:%M:%S.%f').split('.')
      dtobj = "%s.%03dZ" % (dtobj, int(micro) / 1000)
      return dtobj
function_tokens: def get_timestamp_str ( datetime_obj ) : ( dtobj , micro ) = datetime_obj . strftime ( '%Y-%m-%dT%H:%M:%S.%f' ) . split ( '.' ) dtobj = "%s.%03dZ" % ( dtobj , int ( micro ) / 1000 ) return dtobj