LoginSignup
1
0

More than 3 years have passed since last update.

東証の営業日か判定するtrading_day_jp-jsというnpmパッケージを作った

Posted at

以前東証の営業日か判定するtrading_day_jpというGemを作ったのですが、それをJSに移植しました。

営業日のみ処理を走らせたい、といった用途に使えます。


const tradingDayJp = require('trading_day_jp-js');

const date1 = new Date(2019, 0, 3); // 大発会前日
console.log(tradingDayJp.isTradingDay(date1)); // false

const date2 = new Date(2019, 0, 4); // 大発会
console.log(tradingDayJp.isTradingDay(date2)); // true
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0