Ticket 37. WriteTime() changed to WriteString() and formatTime() added