It is necessary to calculate the time, work for the day, for the month, for the week. I make a report card. How to do it?

Closed due to the fact that the essence of the issue is not clear to the participants of BOPOH , ThisMan , PashaPash ♦ , Mstislav Pavlov , korytoff 6 Oct '15 at 16:31 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    What does it mean to count ?? - Maksym Prus
  • one
    More specifically? - thunder
  • @turebekuly, According to the rules of the forum, questions should not be limited to the decision or the completion of student assignments. Please clarify what you have done yourself and what did not work out. - Artem

2 answers 2

$time = microtime(true);// Π—Π°ΠΏΠΎΠΌΠΈΠ½Π°Π΅ΠΌ Π½Π°Ρ‡Π°Π»ΠΎ скрипта //some script body print((microtime(true)-$time));Π’Ρ‹Π²ΠΎΠ΄ΠΈΠΌ Ρ€Π°Π·Π½ΠΈΡ†Ρƒ ΠΌΠ΅ΠΆΠ΄Ρƒ Π½Π°Ρ‡Π°Π»ΠΎΠΌ ΠΈ ΠΊΠΎΠ½Ρ†ΠΎΠΌ. 

For sluggish operations, time () is sufficient.

    what ?? Well, time() for example

    Returns the number of seconds elapsed since the beginning of the Unix Epoch (The Unix Epoch, January 1, 1970 00:00:00 GMT) to the current time.