function write_time() { document.write("02:49 Tuesday 24 Apr 2018"); } write_time();