GetRecordingStartTimeString
If recording start time for the document is available, this function returns the string representing recording start time in ISO 8601 format. Python only.
Syntax
GetRecordingStartTimeString(doc)
Parameters
| Parameter | Type | Description | 
|---|---|---|
| doc | documentReference | Reference to the document | 
Return
Returns the string representing recording start time.
Use datetime.strptime(sts, '%Y-%m-%dT%H:%M:%S.%f') to convert to Python datetime object.
Examples
Python
import nex
from datetime import datetime
doc = nex.GetActiveDocument()
startTimeString = nex.GetRecordingStartTimeString(doc)
dt = datetime.strptime(startTimeString, "%Y-%m-%dT%H:%M:%S.%f")
print(dt)