Login to follow
JapaneseCalendar

JapaneseCalendar (ODC)

Stable version 0.1.0 (Compatible with ODC)
Uploaded on 07 January 2024 by OutSystems MVPs
JapaneseCalendar

JapaneseCalendar (ODC)

Documentation
0.1.0

Setup

This library doesn't have any configuration.


How to use

  1. DateToJapaneseCalendarYear Action
    • Passing Date Time value to OriginalDate, and you get a structure containing Japanese era and year in the era

    • ex) When OriginalDate is #2019-04-30#, the Output Parameter has following values
      • Era: 4 (1: 明治, 2: 大正, 3: 昭和, 4: 平成, 5:令和)
      • EraText: "平成"
      • YearInEra: 31
      • YearInEraText: "31年"
    • If TreatFirstYearSpecially is True and the specified OriginalDate is the first year of the era, YearInEraText will be "元年" instead of "1年"
    • If MakeNumbersFullWidth is True, YearInEraText is expressed in FullWidth (Zenkaku)
  2. FormatDateAsJapaneseCalendar Action
    • Passing Date Time value to OriginalDate, and you get a Formatted Text of it in Japanese Calendar Format

    • ex) When OriginalDate is #2019-05-01#, the Output Parameter is "令和1年5月1日"
    • If TreatFirstYearSpecially is True and the specified OriginalDate is the first year of the era, the Year part of the Output Parameter will be "元年" instead of "1年"
    • If MakeNumbersFullWidth is True, numbers in the Output Parameter are expressed in FullWidth (Zenkaku)