$product = Mage::getModel('catalog/product')->load(1); $product->setUpdatedAt(now()); $product->save();
$order = Mage::getModel('sales/order')->load(1); $order->setUpdatedAt(now()); $order->save();In this example, we load the first order using the Mage::getModel method, set the updated_at field with the current time using setUpdatedAt, and save the order. Package Library: Mage_Core_Model_Abstract setUpdatedAt is a method in the Magento PHP library.