<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Show Time display on map in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262090#M20129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to be able to show the time display on the map. I can check the box in the time slider options that says "show time on map &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;display" but I was wondering if there is a script that can perform that function without having to open the time slider window manually in arcmap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried clicking the the apprearance tab, which opens the Time Text Appearance box, I tried to give it an element name so I can call it in a python script but I couldn't get it to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to do that in script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Courtney&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 11:43:54 GMT</pubDate>
    <dc:creator>courtneygarlock</dc:creator>
    <dc:date>2013-03-26T11:43:54Z</dc:date>
    <item>
      <title>Show Time display on map</title>
      <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262090#M20129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to be able to show the time display on the map. I can check the box in the time slider options that says "show time on map &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;display" but I was wondering if there is a script that can perform that function without having to open the time slider window manually in arcmap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried clicking the the apprearance tab, which opens the Time Text Appearance box, I tried to give it an element name so I can call it in a python script but I couldn't get it to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to do that in script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Courtney&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 11:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262090#M20129</guid>
      <dc:creator>courtneygarlock</dc:creator>
      <dc:date>2013-03-26T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show Time display on map</title>
      <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262091#M20130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is dynamic text for "time". See this topic: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Working_with_dynamic_text/00s900000013000000/"&gt;Working with Dynamic Text&lt;/A&gt;&lt;SPAN&gt;. Scroll down and there is a section on time. If you need to modify time dynamic text in a python script, see code sample #2 in the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/TextElement/00s30000000m000000/"&gt;TextElement class&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/DataFrameTime/00s300000023000000/"&gt;DataFrameTime&lt;/A&gt;&lt;SPAN&gt; object provides access to time management operations for time-enabled layers in a data frame.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262091#M20130</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2013-03-26T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show Time display on map</title>
      <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262092#M20131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, I have already looked at working with dynamic texts as well as dataframe time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know you can add dynamic text to the map layout, my question is: Is there a way to show the dataframe time on the "data view" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not the "layout view"&amp;nbsp; with a script??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can click the box in the time slider, and show time on map, in data view but is there a way to add dynamic text to the data view. I do not see that as an option after reading the help again but my question is, is this possible??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 18:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262092#M20131</guid>
      <dc:creator>courtneygarlock</dc:creator>
      <dc:date>2013-03-26T18:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show Time display on map</title>
      <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262093#M20132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see what you are asking. The "show time on map display" check box on the Time Slider Options dialog is not exposed in arcpy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 20:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262093#M20132</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2013-03-26T20:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show Time display on map</title>
      <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262094#M20133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Courtney-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is kind of a crazy workaround, but I have used it in the past and it at least worked for my scenario... Basically, I wanted some text in the layout that displayed the current feature's date/time, so I used the following workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a new text field that contains the date/time, along with any other wording you want in it (i.e. Time: 3/26/12 12:00:00 AM)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Label your features in ArcMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Convert to Annotation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Convert Anno to Points (Feature to Point tool)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Use Python to update the XY location of the new point FC so they are all sitting on top of each other at a specified XY location. The syntax would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
field = "SHAPE@XY"
with arcpy.da.UpdateCursor("featureClass",field) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row = ([(X,Y)])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Label the point feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Enable time on the point feature as well (make the point feature symbology size 0)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262094#M20133</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-11T12:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show Time display on map</title>
      <link>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262095#M20134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the replies. I will try that out! Hope it works for me, I'm very new to python and kind of learning as I go so this method seems a little over my head.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 00:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/show-time-display-on-map/m-p/262095#M20134</guid>
      <dc:creator>courtneygarlock</dc:creator>
      <dc:date>2013-03-27T00:07:11Z</dc:date>
    </item>
  </channel>
</rss>

