Skip to content

TemporalConverter is a Javascript module for converting dates between different calendars. Need to quickly convert Kōki 2503 to Gregorian Calendar? TemporalConverter can help you achieve that.

License

Notifications You must be signed in to change notification settings

IchanP/TemporalConverter

Repository files navigation

TemporalConveter

TemporalConverter is a Javascript module for converting dates between different calendars. Need to quickly convert Kōki 2503 to Gregorian Calendar? TemporalConverter can help you achieve that.

For a list of available public methods see references

Installation

npm install temporalconverter

Import example

Using ESM

import temporalConverter from 'temporalconverter'

const kokiYear = 500
const returnvalue = temporalConverter.KokiToFormattedGregorian(kokiYear)
console.log(returnvalue) // "160 BCE"

Using commonJS

const temporalConverter = require('temporalconverter')

const kokiYear = 500
const returnvalue = temporalConverter.KokiToFormattedGregorian(500)
console.log(returnvalue) // "160 BCE"

Testing

A test report is included in the tests folder of this repository. To run these tests locally simply fork or download this repository, install the dependencies and run:

npm run test

Japanese Era during Nanboku-chō period

Currently all Japanese Era conversions between 1329 and 1390, the Nanboku-chō period, are done using the Northern Courts eras. Future release may allow an option to use Southern Court eras instead. For more information

License

Part of a laboration in the course 1DV610 at Linnèuniversitet. Published under MIT License.

About

TemporalConverter is a Javascript module for converting dates between different calendars. Need to quickly convert Kōki 2503 to Gregorian Calendar? TemporalConverter can help you achieve that.

Resources

License

Stars

Watchers

Forks

Packages

No packages published