Datetime format /timezone of conversation start and end date in analytics conversations details query API

Hello,
I m using python language and calling /api/v2/analytics/conversations/details/query API

following is just sample

 body = PureCloudPlatformClientV2.ConversationQuery() 
 body.interval=interval
 api_instance.post_analytics_conversations_details_query(body)

1)Here interval need to pass in UTC format only or can pass in diffrent tiemzone?
2) in response , what will be time format of following properties? is it in UTC or certain timezone? So when it needs to consume in reporting query or stored in table or other purpose, one need to use as UTC time vs diff?conversationStart
conversationEnd

doc says it is Date time is represented as an ISO-8601 string.

Adding more details as How conversation start & end datetime is observed in python code.

# Query for conversation details
  api_res= api_instance.post_analytics_conversations_details_query(body)

#before serialization
 'conversation_end': datetime.datetime(2024, 5, 13, 13, 6, 16, 969000, tzinfo=tzutc()),

 gen_api_client.sanitize_for_serialization(api_res.conversations)

#after serialization-conversationEnd is in following format
'2024-05-13T13:06:16.969000+00:00'
1 Like

The ISO-8601 string indicates the time zone. Z or 00 means UTC. ISO 8601 - Wikipedia

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.