code: def datetime_from_json(js, manager):
      
      if js is None:
          return None
      else:
          return dt.datetime(
              js['year'],
              js['month'] + 1,  # Months are 1-based in Python
              js['date'],
              js['hours'],
              js['minutes'],
              js['seconds'],
              js['milliseconds'] * 1000
          )
docs: Deserialize a Python datetime object from json.