Giter Club home page Giter Club logo

jdate's Introduction

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

jdate's People

Contributors

wolfman0719 avatar gevorg95 avatar evshvarov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.