code: def from_pydatetime(cls, pydatetime):
          
          return cls(date=Date.from_pydate(pydatetime.date),
                     time=Time.from_pytime(pydatetime.time))
docs: Creates sql datetime2 object from Python datetime object
          ignoring timezone
          @param pydatetime: Python datetime object
          @return: sql datetime2 object