Alternative date command to display Regnal year(only for Reiwa era).
curl -s https://raw.githubusercontent.com/mxvish/reiwa/main/reiwa.sh | sh- Using wget
wget https://raw.githubusercontent.com/mxvish/reiwa/main/reiwa.sh- Using git
git clone https://github.com/mxvish/reiwa.git
mv reiwa/reiwa.sh .sh reiwa.shHere is an example.
-
zsh
$ date
Output:
Wed Dec 28 17:34:03 JST 2022 -
bash
$ date
Output:
Wed Dec 28 5:34:03 PM JST 2022 -
reiwa
$ sh reiwa.sh
Output:
Wed Dec 28 17:34:01 JST 令和4年