code: def juliandate(time: datetime) -> float:
      """
      Python datetime to Julian time (days since Jan 1, 4713 BCE)
  
      from D.Vallado Fundamentals of Astrodynamics and Applications p.187
       and J. Meeus Astronomical Algorithms 1991 Eqn. 7.1 pg. 61
  
      Parameters
      ----------
  
      time : datetime.datetime
          time to convert
  
      Results
      -------
  
      jd : float
          Julian date (days since Jan 1, 4713 BCE)
      """
      if isinstance(time, (tuple, list)):
          return list(map(juliandate, time))
  
      if time.month < 3:
          year = time.year - 1
          month = time.month + 12
      else:
          year = time.year
          month = time.month
  
      A = int(year / 100.0)
      B = 2 - A + int(A / 4.0)
      C = (
          ((time.second + time.microsecond / 1e6) / 60.0 + time.minute)
          / 60.0
          + time.hour
      ) / 24.0
  
      return (
          int(365.25 * (year + 4716))
          + int(30.6001 * (month + 1))
          + time.day
          + B
          - 1524.5
          + C
      )
  
imports: from datetime import datetime
  from math import tau
  from .timeconv import str2dt
label_desc: Use image node_id 2 for calling a global function with example usage: juliandate(time) and returns: unknown, list