I am trying to control the time slider object through my code in the python console. As given in couple of examples, the time property of a data frame could be controlled by Data frame time property. Assuming I have a time aware layer on my current document. I just want to control the time slider by specifying the startTime and End time. I had used the below code to change the data frame time.
mxd= arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd,"*") df.time.startTime= datetime.datetime.strptime('14-JUL-2010 07:45:00','%d-%b-%Y %H:%M:%S') df.time.endTime=datetime.datetime.strptime('14-JUL-2010 08:45:00','%d-%b-%Y %H:%M:%S')
But the time slider is still showing the intial time Extent of the layer. Is there a way to atleast restrict the layer below with the time property so that i could display only from one time to other time? Typically I have to get user input and run the time slider from that point the user specifies. Please let me know if it is possible in arcpy