There is no "SQL" in mongodb, anyway you have to use db.hostInfo() More about it, here. So now you can access to hostInfo.system.currentTime to get the timestamp of the current system time.