<filename>dd/mm/yyyy should be the formact of the file name
Do something like this :
<SPAN class="comment token"># name has a "time stamp"</SPAN> <SPAN class="keyword token">import</SPAN> datetime Now <SPAN class="operator token">=</SPAN> datetime<SPAN class="punctuation token">.</SPAN>datetime<SPAN class="punctuation token">.</SPAN>now<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> DateTimeStamp <SPAN class="operator token">=</SPAN> <SPAN class="string token">"_{:%Y%m%d_%H%M}"</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>Now<SPAN class="punctuation token">)</SPAN> outFile <SPAN class="operator token">=</SPAN> <SPAN class="string token">"FileBasename"</SPAN> <SPAN class="operator token">+</SPAN> DateTimeStamp <SPAN class="operator token">+</SPAN> <SPAN class="string token">".ext"</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.