How can I display the date when displaying errors in php?

I have a shell script periodically runs a php script in case of error - I see very error,
but I do not see the date when it arose - in some cases the information I need.

How can I do to have a finish date in the error?
June 7th 19 at 14:30
1 answer
June 7th 19 at 14:32
add the conclusion date here:

but be careful, this calback is invoked more often than you want, so adjust and check the types of errors.

Find more questions by tags PHPDebugging