title: Better way to get a Julian date?
body: <p>I'm new to Python. The following code works fine to take the current Julian date and subtract 90 days to get the Julian date for that day. I'm just curious if there is a better way to write this code? </p>
  
  <pre><code>    def jninety_date(self):
      today = int(time.strftime("%j"))
      year = int(time.strftime("%y"))
      jdate = today - 90
      if jdate &lt;= 0:
          jdate = 365 - abs(jdate)
          year -= 1
          return "Julian Date: " + str(year) + " " + str(jdate)
      elif jdate &lt; 99:
          return "Julian Date: " + str(year) + " 0" + str(jdate)
  </code></pre>
  
  <h1>returns 15 342</h1>