Follow Package Manager class naming convention
Japanese Calendar Converter for InterSystems products
This tool helps to Convert a $horolog value to Japanese calendar format. Or vice versa.
Import and compile the files in the src directory to a given namespace.
Write ##class(isj.library.tools.JDate).LogicalToDisplay(70000,1)
R140826
Write ##class(isj.library.tools.JDate).LogicalToDisplay(70000,2)
令和14年08月26日
Write ##class(isj.library.tools.JDate).DisplayToLogical(“R140826”,1)
70000
Write ##class(isj.library.tools.JDate).DisplayToLogical(“令和14年08月26日”,2)
70000
for terminals unable to handle Japanese characters
set JD1=##class(isj.library.tools.JDate).LogicalToDisplay(70000,1) set JD2=##class(isj.library.tools.JDate).LogicalToDisplay(70000,2)
zzdump JD1
0000: 52 31 34 30 38 32 36 R140826
zzdump JD2
0000: 4EE4 548C 0031 0034 5E74 0030 0038 6708 令和14年08月
0008: 0032 0036 65E5 26日
write ##class(isj.library.tools.JDate).DisplayToLogical(JD2,2)
70000
write ##class(isj.library.tools.JDate).DisplayToLogical(JD1,1)
70000
Make sure you have git and Docker desktop installed.
Clone/git pull the repo into any local directory
git clone https://github.com/intersystems-community/JDate.git
Run the IRIS container with your project:
docker-compose up -d --build
Connect to the container using webterminal or
start an IRIS session in docker
docker-compose exec iris iris session iris
or use
Demo Server SMP
Demo Server WebTerminal
Code Quality