You can work with time-enabled layers and maps using arcpy.mapping scripts, which allow you to use the time information associated with the layers and maps for automating map outputs and performing further data managements and analysis tasks over time.
Working with the data frame time
You can access and work with the time properties of maps in Python scripts by using the DataFrameTime class. DataFrameTime provides the ability to set or modify the time properties of the map that were set using the time slider. Also, you can use this to automate the output from maps containing time-enabled layers.
Working with the layer time
You can access the time information associated with time-enabled layers in Python scripts using the LayerTime class. Time information, such as the time fields containing the time values associated with the features, start and end time of the data, and the time-step interval, and so on, can be used for not only gaining knowledge about the time properties on the time-enabled layer but also for performing further data management and analysis tasks over time. Also, you can use several LayerTime properties together to loop through the data in your time-enabled layer based on time.