Programmatically set updated time on node I'm creating duplicates of nodes by doing

$node-&gt;createDuplicate();


It duplicates all the values of all the fields but but it duplicates the created and updated time as well. I want both of those set to now. I know how to set the created time. 

$clone-&gt;setCreatedTime(time());


However there doesn't seem to be a function or a property for setting the updated time. I read up on the source code of the Node class but couldn't find any mention of it. 

Is there any kind of method where you can set the updated time of a node?
I think you can change the value by accessing the variable and saving it then

$clone-&gt;changed-&gt;value = time();
$clone-&gt;save();