mxvish / reiwa

Alternative date command to display Regnal year(only for Reiwa era).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reiwa

Alternative date command to display Regnal year(only for Reiwa era).

Contents

Usage without installation

curl -s https://raw.githubusercontent.com/mxvish/reiwa/main/reiwa.sh | sh

Installation

  • 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 .

Usage

sh reiwa.sh

Difference between this and date command

Here 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年

About

Alternative date command to display Regnal year(only for Reiwa era).

License:MIT License


Languages

Language:Shell 100.0%