kerncraft/machinemodel.py
def get_last_modified_datetime(self):
        """Return datetime object of modified time of machine file. Return now if not a file."""
        if self._path:
            statbuf = os.stat(self._path)
            return datetime.utcfromtimestamp(statbuf.st_mtime)
        else:
            return datetime.now()
def get_last_modified_datetime(self):
        if self._path:
            statbuf = os.stat(self._path)
            return datetime.utcfromtimestamp(statbuf.st_mtime)
        else:
            return datetime.now()
def get_last_modified_datetime ( self ) : if self . _path : statbuf = os . stat ( self . _path ) return datetime . utcfromtimestamp ( statbuf . st_mtime ) else : return datetime . now ( )
Return datetime object of modified time of machine file. Return now if not a file.
Return datetime object of modified time of machine file . Return now if not a file .