{"id":13408631,"url":"https://github.com/chanmratekoko/mmcalendar","last_synced_at":"2026-01-14T02:02:58.999Z","repository":{"id":55033305,"uuid":"93470316","full_name":"chanmratekoko/mmcalendar","owner":"chanmratekoko","description":"Myanmar Calendar \u0026 Algorithm","archived":false,"fork":false,"pushed_at":"2024-11-27T10:44:16.000Z","size":372,"stargazers_count":26,"open_issues_count":1,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-18T10:59:02.782Z","etag":null,"topics":["algorithm","android","astrological-information-converter","burmese","burmese-astrology","calendar","converter","gregorian","jar","java","julian","kotlin","myanmar","myanmar-astrology","myanmar-calendar"],"latest_commit_sha":null,"homepage":"https://chanmratekoko.github.io/mmcalendar/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanmratekoko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-06T03:08:16.000Z","updated_at":"2025-06-28T23:23:48.000Z","dependencies_parsed_at":"2024-10-26T04:07:14.935Z","dependency_job_id":"40371e72-844e-4c1a-afb6-0a14d953941e","html_url":"https://github.com/chanmratekoko/mmcalendar","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/chanmratekoko/mmcalendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanmratekoko%2Fmmcalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanmratekoko%2Fmmcalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanmratekoko%2Fmmcalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanmratekoko%2Fmmcalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanmratekoko","download_url":"https://codeload.github.com/chanmratekoko/mmcalendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanmratekoko%2Fmmcalendar/sbom","scorecard":{"id":273675,"data":{"date":"2025-08-11","repo":{"name":"github.com/chanmratekoko/mmcalendar","commit":"a9bf47e15c30b0be4299cf3b060a1096e0ca3d3c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T13:57:46.285Z","repository_id":55033305,"created_at":"2025-08-17T13:57:46.286Z","updated_at":"2025-08-17T13:57:46.286Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","android","astrological-information-converter","burmese","burmese-astrology","calendar","converter","gregorian","jar","java","julian","kotlin","myanmar","myanmar-astrology","myanmar-calendar"],"created_at":"2024-07-30T20:00:54.216Z","updated_at":"2026-01-14T02:02:58.992Z","avatar_url":"https://github.com/chanmratekoko.png","language":"Java","funding_links":[],"categories":["Projects"],"sub_categories":["Component"],"readme":"\n[![GitHublicense](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/chanmratekoko/mmcalendar/blob/master/LICENSE) [![Maven Central](https://img.shields.io/badge/Maven%20Central-1.0.11.RELEASE-blue.svg)](https://search.maven.org/remote_content?g=com.github.chanmratekoko\u0026a=myanmar-calendar\u0026v=LATEST)\n\n# Myanmar Calendar\n**Myanmar Calendar** library for Android and Java applications.\nFor more information see [the website][1] and [the wiki][2].\n\nUsage\n-----\n\n**1. Maven**\n- Add the following to the `\u003crepositories\u003e` section of your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.chanmratekoko\u003c/groupId\u003e\n  \u003cartifactId\u003emyanmar-calendar\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.11.RELEASE\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**2. Gradle dependency**\n  -  Add this to your app `build.gradle`:\n\n```gradle\ncompile 'com.github.chanmratekoko:myanmar-calendar:1.0.11.RELEASE'\n```\n\n**3. jar file**\n- Download the [**latest .jar file**][3] from the\nreleases section\n- Copy the **myanmar-calendar-version.jar** file into the `libs` folder of your application project\n- Start using the library\n\n## Sample\n\n### Configure\n\nConfigure default calendar type and language. It is `optional`.\n\n```java\n// Default Language MYANMAR Unicode Standard (Burmese)\n// Default Calendar Type ENGLISH\n// Configure Language and Calendar Type\nConfig.initDefault(\n    new Config.Builder()\n      .setCalendarType(CalendarType.ENGLISH)\n      .setLanguage(Language.ENGLISH)\n      .build());\n```\n\n### Myanmar Date Converter\n\n#### Sample Usage:\n\n```java\n// Get Myanmar Date by year, month and day\nMyanmarDate myanmarDate = MyanmarDate.of(2024, 1, 1);\n\n// Output: ၂၅၆၇\nmyanmarDate.getBuddhistEra();\n\n// Output: ၁၃၈၅\nmyanmarDate.getYear();\n\n// Output: နတ်တော်\nmyanmarDate.getMonthName();\n\n// Output: လဆုတ်\nmyanmarDate.getMoonPhase();\n\n// Output: ၅\nmyanmarDate.getFortnightDay();\n\n// Output : တနင်္လာ\nmyanmarDate.getWeekDay();\n```\n\n#### Translate the output into another language.\n```java\n// Get Myanmar Date by year, month and day\nMyanmarDate myanmarDate = MyanmarDate.of(2024, 1, 1);\nLanguage language = Language.ENGLISH;\n\n// Output: 2567\nmyanmarDate.getBuddhistEra(language);\n\n// Output: 1385\nmyanmarDate.getYear(language);\n\n// Output: Nadaw\nmyanmarDate.getMonthName(language);\n\n// Output: Waning\nmyanmarDate.getMoonPhase(language);\n\n// Output: 5\nmyanmarDate.getFortnightDay(language);\n\n// Output: Monday\nmyanmarDate.getWeekDay(language);\n```\n\n### Myanmar Date format\n\n```java\nMyanmarDate myanmarDate = MyanmarDate.of(2024, 1, 1);\n//Output: သာသနာနှစ် ၂၅၆၇ ခု၊ မြန်မာနှစ် ၁၃၈၅ ခု၊ နတ်တော် လဆုတ် ၅ ရက် တနင်္လာနေ့\nmyanmarDate.format(\"S s k, B y k, M p f r En\");\n\n//Output: Sasana Year 2567 Ku, Myanmar Year 1385 Ku, Nadaw Waning 5 Yat Monday Nay\nmyanmarDate.format(\"S s k, B y k, M p f r E n\", Language.ENGLISH);\n```\n\n#### Myanmar Date Patterns\n\nMyanmar Date formats are specified by date pattern strings.\nThe following pattern letters are defined ('S', 's', 'B', 'y', 'k', 'M', 'p', 'f', 'E', 'n', 'r', are reserved):\n\n| Letter        | Date Component  | Examples Myanmar  | Examples English |\n| ------------- |-------------|-------------|------------------|\n| S | Sasana year | သာသနာနှစ် | Sasana Year      |\n| s | Buddhist era | ၂၅၆၁ | 2561             |\n| B | Burmese year | မြန်မာနှစ် | Myanmar Year     |\n| y | Myanmar year | ၁၃၇၉ | 1379             |\n| k | Ku | ခု | Ku |\n| M | Month in year | ဝါခေါင် | Wagaung          |\n| p | Moon phase | လဆန်း | waxing           |\n| f | Fortnight Day | ၁ | 1                |\n| r | Yat | ရက် |         Yat         |\n| E | Day name in week | တနင်္လာ | Monday           |\n| n | Nay | နေ့ |         Nay         |\n\n### Calculation of Relevant Myanmar Months For The Year\n\n```java\n// နှစ်အလိုက် မြန်မာ လအမည်များ တွက်ချက်ခြင်း\n// Output: Month Names (Relevant Myanmar month names for a given Myanmar year.)\nMyanmarMonths myanmarMonth = MyanmarMonths.of(1381, 0);\n```\n\n### Create the header for the Myanmar Calendar.\n\n#### Myanmar Calendar Style Header\n```java\n// Output: သာသနာနှစ် ၂၅၆၂ ခု မြန်မာနှစ် ၁၃၈၀ ခု ကဆုန် - နယုန်\n// Output: Sasana Year 2561 - 2562 Ku Myanmar Year 1379 - 1380 Ku Late Kason - Kason\nString header = MyanmarCalendarKernel.getCalendarHeader(1380, 2);\n```\n\n#### Western Calendar Style Header\n```java\n// Output: သာသနာနှစ် ၂၅၆၇ - ၂၅၆၈ ခု မြန်မာနှစ် ၁၃၈၅ - ၁၃၈၆ ခု တပေါင်း - တန်ခူး\n// Output: Sasana Year 2567 - 2568 Ku Myanmar Year 1385 - 1386 Ku Tabaung - Tagu\nString header = MyanmarCalendarKernel.getCalendarHeaderForWesternStyle(2024, 4);\n```\n\n### Thingyan (Myanmar New Year)\n\n```java\nMyanmarThingyanDateTime myanmarThingyanDateTime = MyanmarThingyanDateTime.of(1386);\n// Thingyan Akyo day (သင်္ကြန်အကြိုနေ့)\nMyanmarDate akyoDay = myanmarThingyanDateTime.getAkyoDay();\n// Akya time (သင်္ကြန်ကျချိန်)\nLocalTime akyaTime = myanmarThingyanDateTime.getAkyaTime().toMyanmarLocalTime();\n// Akya day (အကျနေ့)\nMyanmarDate akyaDay = myanmarThingyanDateTime.getAkyaDay();\n// Atat Time (သင်္ကြန်တက်ချိန်)\nLocalTime atatTime = myanmarThingyanDateTime.getAtatTime().toMyanmarLocalTime();\n// Atat day (သင်္ကြန်အတက်နေ့)\nMyanmarDate atatDay = myanmarThingyanDateTime.getAtatDay();\n// Thingyan Akyat day (အကြတ်နေ့)\nMyanmarDate[] akyatDays = myanmarThingyanDateTime.getAkyatDays();\n// Myanmar New Year's Day (နှစ်ဆန်းတစ်ရက်နေ့)\nMyanmarDate myanmarNewYearDate = myanmarThingyanDateTime.getMyanmarNewYearDay();\n```\n\n### Holiday Calculation\n\n```java\n// Checks if the current date is a holiday\nboolean isHoliday = HolidayCalculator.isHoliday(MyanmarDate.now());\n\n// Retrieves a list of holiday names for the current date\nList\u003cString\u003e holidayNameList = HolidayCalculator.getHoliday(MyanmarDate.now());\n```\n\n```java\n// Check Anniversary\nList\u003cString\u003e anniversary = HolidayCalculator.getAnniversary(MyanmarDate.of(2017,1 ,1));\n```\n\n### Astrological information Converter\n\n```java\nimport mmcalendar.MyanmarDate;\nimport mmcalendar.Astro;\n\nMyanmarDate myanmarDate = MyanmarDate.now();\nAstro astro = Astro.of(myanmarDate);\n\n// ဥပုသ် သို့ အဖိတ်\n// Output: Sabbath or Sabbath Eve or Empty\nastro.getSabbath();\n\n// သမားညို\n// Output: Thamanyo or Empty\nastro.getThamanyo();\n\n// သမားဖြူ\n// Output: Thamaphyu or Empty\nastro.getThamaphyu();\n\n// အမြိတ္တစုတ်\n// Output: Amyeittasote or Empty\nastro.getAmyeittasote();\n\n// ဝါရမိတ္တုကြီး\n// Output: Warameittugyi or Empty\nastro.getWarameittugyi();\n\n// ဝါရမိတ္တုငယ်\n// Output: Warameittunge or Empty\nastro.getWarameittunge();\n\n// ရက်ပုပ်\n// Output: Yatpote or Empty\nastro.getYatpote();\n\n// နဂါးပေါ်\n// Output: Nagapor or Empty\nastro.getNagapor();\n\n// ရက်ယုတ်မာ\n// Output: Yatyotema or Empty\nastro.getYatyotema();\n\n// မဟာရက်ကြမ်း\n// Output: Mahayatkyan or Empty\nastro.getMahayatkyan();\n\n// ရှမ်းရက်\n// Output: Shanyat or empty\nastro.getShanyat();\n\n// နဂါးခေါင်း လှည့်ရာအရပ်\n// Output: west or north or east or south\nastro.getNagahle();\n\n// မဟာဘုတ်၊ ဇာတာခွင်\n// Output: Binga or Atun or Yaza or Adipati or Marana or Thike or Puti\nastro.getMahabote();\n\n// နက္ခတ်\n// Output: Ogre or Elf or Human\nastro.getNakhat();\n\n// ခုနှစ်အမည်\n// Output: Hpusha or Magha or Phalguni or Chitra or Visakha or Jyeshtha or Ashadha or Sravana or Bhadrapaha or Asvini or Krittika or Mrigasiras\nastro.getYearName();\n\n// ရက်ရာဇာ သို့ ပြဿဒါး သို့ မွန်းလွဲ ပြဿဒါး\n// Output: \"Yatyaza\" or \"Pyathada\" or \"Afternoon Pyathada\" or Empty \"\"\nastro.getAstrologicalDay();\n```\n\u003e You can verify these days by invoking the properties prefixed with `is`.\n\n\n## Features\n* The conversion of Myanmar Date can be executed with support for various time zones, integrating features from the Java Date and Time API, Julian Day, and Unix Time.\n* Astrological information Converter\n* Myanmar Date, Julian date to Western Date\nCalendar Type (English, Gregorian and Julian) also Support.\n* The algorithm for Myanmar Thingyan Date and Time.\n\n\u003e All the calculations are based on Myanmar Standard Time (UTC+06:30) which is calculated on the basis of 97° 30' longitude.\n\n\u003e ***Note:*** Ready For Advanced Users and Developers. Check Kernel!\n\n### Language Localization Support\n* English\n* Myanmar (Burmese Unicode) _(default)_\n* Myanmar (Burmese Zawgyi)\n* Myanmar (Mon)\n* Myanmar (Tai)\n* Myanmar (Karen)\n\n### Test Coverage\n\nUnit test coverage initiation spans from 1923 through 2023.\n\nThe algorithm is capable of calculating from the commencement of the Myanmar Calendar Year 2.\n\n\n### Demo\n- [Web](https://yan9a.github.io/mmcal/index.htm)\n\n### Concept reference resources:\n1. [Algorithm, Program and Calculation of Myanmar Calendar](http://cool-emerald.blogspot.sg/2013/06/algorithm-program-and-calculation-of.html) [(Dr Yan Naing Aye)](https://github.com/yan9a/)\n\n### Contributing\n\nWould you like to contribute? Fork us and send a pull request! Be sure to checkout our issues first.\n\n### Simple issues and bug reports\n\nIf you are reporting a bug which can be observed visually, please add to your issue either:\n* A working sample project that we can compile, run, and immediately observe the issue\n\n## License\n```\nMIT License\n\nCopyright (c) 2017 Chan Mrate Ko Ko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n[1]: https://chanmratekoko.github.io/mmcalendar/\n[2]: https://github.com/chanmratekoko/mmcalendar/wiki\n[3]: https://search.maven.org/remote_content?g=com.github.chanmratekoko\u0026a=myanmar-calendar\u0026v=LATEST\n\n[snap]: http://maven.aliyun.com/nexus/#nexus-search;quick~myanmar-calendar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanmratekoko%2Fmmcalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanmratekoko%2Fmmcalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanmratekoko%2Fmmcalendar/lists"}