function cron() { try { connectDB(); saveStations(); savePrices(); getInfo(true); } catch (Exception $e) { getInfo(false); } }
function saveTodayPrices() { $tomorrow = new DateTime('tomorrow'); savePrices($tomorrow->format("Y"), $tomorrow->format("m"), $tomorrow->format("d")); }