def set_using_network_time(enable):
 state = salt.utils.mac_utils.validate_enabled(enable)
 cmd = 'systemsetup -setusingnetworktime {0}'.format(state)
 salt.utils.mac_utils.execute_return_success(cmd)
 return (state == salt.utils.mac_utils.validate_enabled(get_using_network_time()))

def set_using_network_time ( enable ) : state = salt . utils . mac_utils . validate_enabled ( enable ) cmd = 'systemsetup -setusingnetworktime {0}' . format ( state ) salt . utils . mac_utils . execute_return_success ( cmd ) return ( state == salt . utils . mac_utils . validate_enabled ( get_using_network_time ( ) ) )
set whether network time is on or off .