Japanese Calendar Converter

Downloads28
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

Follow Package Manager class naming convention

JDate

Japanese Calendar Converter for InterSystems products

This tool helps to Convert a $horolog value to Japanese calendar format. Or vice versa.

Installation:

Import and compile the files in the src directory to a given namespace.

Examples:

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

Prereqisites for Docker

Make sure you have git and Docker desktop installed.

Installation

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

How to Test it

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

ZPM installation
zpm "install JDate"
Rating
5 (1)
Category
Developer Environment
Works with
InterSystems IRISInterSystems IRIS for HealthCachéEnsemble
Tags
Info
Version
2.3
Last updated
2022-04-19
Repository
Open
License
Link