I am working on a water mgmnt sys for a company and need to add hours to a datetime value in oder to produce a projected datetime value. I dont know if this can be done but any help would be great.
the result here $time_to_fill gives about 8.2 hours now I need to add this to $last_pulled to get my projected datetime.Code://MAX_TOP = 96 inches //BARRELS_PER_INCH = 1.67 bbl or barrels per hour $last_bottom = $row['bottom'];//lets say 33 inches $last_pulled = $row['last_pulled'];//2012-07-31 09:39:14 $bbl = $row['bbl_per_hour'];//12.70 barrels per hout $projected_fill = MAX_TOP - $last_bottom; $projected_barrels = $projected_fill * BARRELS_PER_INCH; $time_to_fill = $projected_barrels/$bbl;
Thakns


Reply With Quote

Bookmarks