Convert date/time from machine-readable to human-readable
Features
- Localised - the output is in the main language of your browser. Defaults to
US English if no language is configured.
- Time zone conversion to match your local configuration. Defaults to UTC if no
language is configured, or if
Firefox’s protection against fingerprinting is
enabled:
Your timezone is reported to be UTC
- Updates whenever you change the input field.
- Clears the input field when you click it, for faster pasting.
- Forces 24-hour clock.
Technical stuff
This is a more user-friendly approach than
date --date=INPUT +'%A, %-d %B %+4Y at %-I:%M:%S %P %Z'
, which gives a similar
result, but is not localised.
If you’re interested in how this works, the
code
and
tests
are both available.
Basically, the input must be a valid
Date
constructor
argument, and will be converted to the locale and time zone of your browser.