We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我把一个月的公历的全部日子都转换为农历,发现大概需要1.5-2秒,感觉有点慢,不知道是不是使用的方式不对? 语法是kotlin,我单独测试过Date.from(day.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant())这个是不耗时的
Date.from(day.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant())
val lunarDate = Lunar.fromDate(Date.from(day.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant())) val subText = if (lunarDate.day == 1) { lunarDate.monthInChinese + "月" } else { lunarDate.dayInChinese }
The text was updated successfully, but these errors were encountered:
tyme速度快得多,可以试下。 https://github.com/6tail/tyme4j
Sorry, something went wrong.
No branches or pull requests
我把一个月的公历的全部日子都转换为农历,发现大概需要1.5-2秒,感觉有点慢,不知道是不是使用的方式不对?
语法是kotlin,我单独测试过
Date.from(day.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant())
这个是不耗时的The text was updated successfully, but these errors were encountered: