Home Applications Japanese Calendar Converter

Japanese Calendar Converter

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
238
Views
9
IPM installs
0
0
Details
Releases
Reviews  (1)
Issues
This app has a demo View
What's new in this version Follow Naming Convention

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

Made with
Install
zpm install JDate download archive
Version
2.0.119 Apr, 2022
Category
Developer Environment
Works with
InterSystems IRISInterSystems IRIS for HealthCachéEnsemble
First published
02 Apr, 2019
Last checked by moderator
15 Oct, 2024Works