#japanese #japan #holilday

app holidays_jp

holidays_jp determines Japanese national holiday. The definition of holidays is based on csv file provided by the Cabinet Office.

2 releases

0.1.2 Feb 18, 2023
0.1.0 Feb 18, 2023

#1322 in Command line utilities

21 downloads per month

MIT license

54KB
1K SLoC

holidays_jp

GitHub Workflow Status GitHub GitHub commit activity GitHub last commit Codacy Badge FOSSA Status

holidays_jp determines Japanese holiday. The definition of Japanese national holidays is based on this csv file provided by the Cabinet Office..

The holiday data is updated once a week by github action. Thereby, holiday data is included in the repository. Therefore, this tool can be used offline. If your PC is connected to the Internet, you can obtain the latest Japanese national holiday data by executing the following command.

$ cargo run -- -g=true
$ cargo fmt # dont't have to do it

Usage

When used in a terminal like the shell command

# default
$ ./holidays_jp -d 20220101
20220101 is holiday(元日)

# the date format to pass as a arg
$ ./holidays_jp -d 2022/01/01 -f %Y/%m/%d
2022/01/01 is holiday(元日)

# help
$ ./target/release/holidays_jp -h
holidays_jp is determines holiday in Japan

Usage: holidays_jp [OPTIONS]

Options:
  -d, --date <DATE>               a date string, such as 20230211 (%Y%m%d) [default: ]
  -g, --gen <BOOL>                generates a new Japanese national holidays data [possible values: true, false]
  -f, --dateformat <DATE_FORMAT>  Specify the date format to pass as a command line argument [default: %Y%m%d]
  -h, --help                      Print help
  -V, --version                   Print version

License

FOSSA Status

Dependencies

~9–23MB
~332K SLoC