<?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 Re: Python equivalent of java's Long.MAX_VALUE - System.currentTimeMillis() in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-equivalent-of-java-s-long-max-value-system/m-p/678052#M52531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Max int:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import sys
sys.maxint&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As for max long, there is none for python (see &lt;/SPAN&gt;&lt;A href="http://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Current time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import time
time.time()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Midnight time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import time
import datetime
midnight = datetime.datetime.combine(datetime.date.today(), datetime.time.min)
midnightSec=time.mktime(midnight.timetuple()) #midnight this morning
lastMidnightSec-=86400 #midnight yesterday morning (there are 86400 seconds in a day)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:35:02 GMT</pubDate>
    <dc:creator>JoshuaChisholm</dc:creator>
    <dc:date>2021-12-12T04:35:02Z</dc:date>
    <item>
      <title>Python equivalent of java's Long.MAX_VALUE - System.currentTimeMillis()</title>
      <link>https://community.esri.com/t5/python-questions/python-equivalent-of-java-s-long-max-value-system/m-p/678051#M52530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can i get&amp;nbsp; Python equivalent of Long.MAX_VALUE - System.currentTimeMillis() &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also i want yesterday's midnight 's values in Java's System.currentTimeMillis() from python or shell scripts ?Can any one help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 00:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-equivalent-of-java-s-long-max-value-system/m-p/678051#M52530</guid>
      <dc:creator>ByomjanB</dc:creator>
      <dc:date>2014-03-18T00:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python equivalent of java's Long.MAX_VALUE - System.currentTimeMillis()</title>
      <link>https://community.esri.com/t5/python-questions/python-equivalent-of-java-s-long-max-value-system/m-p/678052#M52531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Max int:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import sys
sys.maxint&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As for max long, there is none for python (see &lt;/SPAN&gt;&lt;A href="http://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Current time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import time
time.time()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Midnight time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import time
import datetime
midnight = datetime.datetime.combine(datetime.date.today(), datetime.time.min)
midnightSec=time.mktime(midnight.timetuple()) #midnight this morning
lastMidnightSec-=86400 #midnight yesterday morning (there are 86400 seconds in a day)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-equivalent-of-java-s-long-max-value-system/m-p/678052#M52531</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2021-12-12T04:35:02Z</dc:date>
    </item>
  </channel>
</rss>

