'This function remotely executes \'date\' on the master node
and returns a datetime object with the master\'s time
instead of fetching it from local machine, maybe inaccurate.'

def get_remote_time(self):

    cmd = 'date    --iso-8601=seconds'
    date_str = '\n'.join(self._cluster.master_node.ssh.execute(cmd))
    d = utils.iso_to_datetime_tuple(date_str)
    if self._stat:
        self._stat.remote_tzinfo = d.tzinfo
    return d
