https://github.com/mxvish/reiwa
Alternative date command to display Regnal year(only for Reiwa era).
https://github.com/mxvish/reiwa
bash cli console date git github linux macos open-source reiwa shell wget zsh
Last synced: 28 days ago
JSON representation
Alternative date command to display Regnal year(only for Reiwa era).
- Host: GitHub
- URL: https://github.com/mxvish/reiwa
- Owner: mxvish
- License: mit
- Created: 2022-12-28T08:31:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T02:24:21.000Z (about 2 years ago)
- Last Synced: 2025-06-10T08:41:25.598Z (4 months ago)
- Topics: bash, cli, console, date, git, github, linux, macos, open-source, reiwa, shell, wget, zsh
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reiwa
Alternative date command to display [Regnal year](https://en.wikipedia.org/wiki/Regnal_year)(only for Reiwa era).## Contents
- [Usage without installation](#usage-without-installation)
- [Installation](#installation)
- [Usage](#usage)
- [Difference between this and date command](#difference-between-this-and-date-command)## Usage without installation
```sh
curl -s https://raw.githubusercontent.com/mxvish/reiwa/main/reiwa.sh | sh
```## Installation
- Using wget
```sh
wget https://raw.githubusercontent.com/mxvish/reiwa/main/reiwa.sh
```- Using git
```sh
git clone https://github.com/mxvish/reiwa.git
mv reiwa/reiwa.sh .
```## Usage
```sh
sh reiwa.sh
```## Difference between this and date command
Here is an example.
- zsh
```sh
$ date
```
Output: `Wed Dec 28 17:34:03 JST 2022`- bash
```sh
$ date
```
Output: `Wed Dec 28 5:34:03 PM JST 2022`- reiwa
```sh
$ sh reiwa.sh
```
Output: `Wed Dec 28 17:34:01 JST 令和4年`