def set_time_server(time_server='time.apple.com'):
 cmd = 'systemsetup -setnetworktimeserver {0}'.format(time_server)
 salt.utils.mac_utils.execute_return_success(cmd)
 return (time_server in get_time_server())

def set_time_server ( time_server = 'time.apple.com' ) : cmd = 'systemsetup -setnetworktimeserver {0}' . format ( time_server ) salt . utils . mac_utils . execute_return_success ( cmd ) return ( time_server in get_time_server ( ) )
designates a network time server .