/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email . The license is also available online at . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ /*! \file japan.hpp \brief Japanese calendar */ #ifndef quantlib_japanese_calendar_hpp #define quantlib_japanese_calendar_hpp #include namespace QuantLib { //! Japanese calendar /*! Holidays:
  • Saturdays
  • Sundays
  • New Year's Day, January 1st
  • Bank Holiday, January 2nd
  • Bank Holiday, January 3rd
  • Coming of Age Day, 2nd Monday in January
  • National Foundation Day, February 11th
  • Vernal Equinox
  • Greenery Day, April 29th
  • Constitution Memorial Day, May 3rd
  • Holiday for a Nation, May 4th
  • Children's Day, May 5th
  • Marine Day, 3rd Monday in July
  • Respect for the Aged Day, 3rd Monday in September
  • Autumnal Equinox
  • Health and Sports Day, 2nd Monday in October
  • National Culture Day, November 3rd
  • Labor Thanksgiving Day, November 23rd
  • Emperor's Birthday, December 23rd
  • Bank Holiday, December 31st
  • a few one-shot holidays
Holidays falling on a Sunday are observed on the Monday following except for the bank holidays associated with the new year. \ingroup calendars */ class Japan : public Calendar { private: class Impl : public Calendar::Impl { public: std::string name() const { return "Japan"; } bool isWeekend(Weekday) const; bool isBusinessDay(const Date&) const; }; public: Japan(); }; } #endif