Skip to content

Instantly share code, notes, and snippets.

@ThomasRettig
Created March 11, 2022 11:41
Show Gist options
  • Save ThomasRettig/146fff00f6efa8d626faf51ba9ea88a3 to your computer and use it in GitHub Desktop.
Save ThomasRettig/146fff00f6efa8d626faf51ba9ea88a3 to your computer and use it in GitHub Desktop.
document.title = (
(new Date()).toTimeString().split(':').slice(0,2).join(':') +
' — ' + (new Date()).toDateString();
);
// by Rasmus Andersson https://github.com/rsms/inter/blob/7b4e19f9a852a394885ccb935decb4ad0732d4c8/docs/lab/index.html#L1274
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment