code: def paypaltime2datetime(s):
      
      naive = datetime.datetime.strptime(s, PayPalNVP.TIMESTAMP_FORMAT)
      if not settings.USE_TZ:
          return naive
      else:
          # TIMESTAMP_FORMAT is UTC
          return timezone.make_aware(naive, timezone.utc)
docs: Convert a PayPal time string to a DateTime.