set_time


Description:

public bool set_time (DateTime? date_time, uint flags) throws Error

This function tries to set guest time to the given value.

The passed time must in UTC.

If date_time is null, the time is reset using the domain's RTC.

Please note that some hypervisors may require guest agent to be configured and running in order for this function to work.

Parameters:

this

the domain

date_time

the time to set as DateTime.

flags

Unused, pass 0.

Returns:

true on success, false otherwise.