Appending timestamps to the end of a document
A timestamp is automatically appended to the bottom of any file containing the text ".LOG" (without quotes) in the first four characters of the file.
The timestamp is added every time the file is opened.
The timestamp format is the following (followed by a new line):
Or, in the PHP date format:
It also works in Microsoft Notepad.