Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lunar calendar #131

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Lunar calendar #131

wants to merge 4 commits into from

Conversation

Yae-Makoto
Copy link
Contributor

Description

A util class that won't affect overall structure

Usage

import {getLunar} from ...
var lunarDate = getLunar() // not param, default to today
// or
var lunarDate = getLunar([2022, 4, 15]) // manually enter date

console.log(lunarDate)

----------------------
{
  a: "虎"
  d: "十五"
  m: "三月"
  y: "壬寅"
  yy: "贰零贰贰"
}

How has this been tested?

Test by hand

Screenshots

Checklist

(Leave blank if not applicable)

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

@@ -50,6 +51,10 @@ function App() {
<header className="App-header">
<Router>
<Switch>
{/* Where HONGCHEN test the function */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a issue to remove this route later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants