Merge pull request #2 from yakkun/patch-1 First fix typo in REIWA
Merge pull request #2 from yakkun/patch-1
First fix typo in REIWA
Last library of 平成. So, in Japan change era. This library is my memorial library.
EraCalculator can convert other Era years. This example is Calculates what year of 大化 was when the 平成 was 大化.
let expected = Era(eraType: .大化, year: 1345) let got = EraType.平成.convert(to: EraType.大化) XCTAssertEqual(got.eraType, expected.eraType) XCTAssertEqual(got.year, expected.year) XCTAssertEqual(got.description, "大化 1345年")
EraCalculator is available under the MIT license. See the LICENSE file for more info.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
EraCalculator
Last library of 平成. So, in Japan change era. This library is my memorial library.
Usage
EraCalculator can convert other Era years. This example is Calculates what year of 大化 was when the 平成 was 大化.
LICENSE
EraCalculator is available under the MIT license. See the LICENSE file for more info.