[PHP] How do I use date_diff in my code (both codes are included, mine and the example function) I need process.php

2010-05-02 Thread justino garcia
HOw would I use this function below, from this url http://php.net/manual/en/function.date-diff.php I need to output the subject, date, and the final answer to the calcuation of the time difference (say from e.g. 10:00 AM to 12:00 PM) . Getting total time wrked on at a job site, doing helpdesk. I am

[PHP] Project TIME calculated, in PHP

2010-05-01 Thread justino garcia
tImeArrived = CDate(InputBox("Enter START time:", "Start time", "9:00 AM")) TimeLeft = CDate(InputBox("Enter END time:", "End time", "1:24 PM")) Minutes = DateDiff("n", TimeArrived, TimeLeft) Hours = Int(Minutes / 60) Minutes = Minutes - (Hours * 60) TotalTime = Format(Hours, "0") & ":" & Format(Mi