kdk::KLunarCalendarInfo(3)
โจ kdk::KLunarCalendarInfo โจ
okay bestie, we're in the Library Functions Manual and this page is literally all about kdk::KLunarCalendarInfo โ a whole lil calendar genius that knows lunar dates, solar terms, holidays and all that astrology-adjacent ๅคฉๅนฒๅฐๆฏ็่ goodness ๐ no cap, it's giving main character energy for date math.
๐ NAME ๐
kdk::KLunarCalendarInfo โ your girl for everything lunar-calendar ๐
๐ธ SYNOPSIS ๐ธ
She Inherits QObject. Yes ma'am, Qt royalty. ๐
๐ซ Public Member Functions
KLunarCalendarInfo (QObject *parent=0)
bool isLoopYear (int year)
int getMonthDays (int year, int month)
int getTotalMonthDays (int year, int month)
int getFirstDayOfWeek (int year, int month, bool FirstDayisSun)
QString getHoliday (int month, int day)
QString getSolarTerms (int year, int month, int day)
QString getLunarFestival (int month, int day)
QString getLunarYear (int year)
void getLunarCalendarInfo (int year, int month, int day, QString
&strHoliday, QString &strSolarTerms, QString &strLunarFestival,
QString &strLunarYear, QString &strLunarMonth, QString &strLunarDay)
QString getLunarInfo (int year, int month, int day, bool yearInfo, bool
monthInfo, bool dayInfo)
QString getLunarYearMonthDay (int year, int month, int day)
QString getLunarMonthDay (int year, int month, int day)
QString getLunarDay (int year, int month, int day)
๐ Static Public Member Functions
static KLunarCalendarInfo * Instance ()
๐ Member Function Documentation ๐
๐ฆ int kdk::KLunarCalendarInfo::getFirstDayOfWeek (int year, int month, bool FirstDayisSun)
่ฎก็ฎๆๅฎๅนดๆๅฏนๅบๆๆๅ โ she works out which day of the week that year + month lands on. ๐๏ธ
Parameters
- year
- month
- FirstDayisSun: ็ฌฌไธๅคฉๆฏๅฆไปฅๅจๆฅๅผๅง โ do you want day one to be Sunday or not? your call, bestie โจ
Returns
(nothing documented here โ the docs left it blank, not me ๐)
๐ QString kdk::KLunarCalendarInfo::getHoliday (int month, int day)
่ฎก็ฎๅฝ้ ่ๆฅ โ international holidays, calculated for you. ๐๐
Parameters
- month
- day
Returns
(empty in the source docs, fr fr ๐ญ)
๐ void kdk::KLunarCalendarInfo::getLunarCalendarInfo (int year, int month, int day, QString & strHoliday, QString & strSolarTerms, QString & strLunarFestival, QString & strLunarYear, QString & strLunarMonth, QString & strLunarDay)
่ฎก็ฎๆๅฎๅนดๆๆฅๅๅไฟกๆฏ,ๅ ๆฌๅ ฌๅ่ๆฅๅๅๅ่ๆฅๅไบๅๅ่ๆฐ โ the full package deal: lunar info for that exact year/month/day, including the Gregorian holidays, the lunar festivals, and the 24 solar terms. The way she does it ALL in one call? iconic. ๐ฅ
Parameters
- year
- month
- day
- strHoliday
- strSolarTerms
- strLunarFestival
- strLunarYear
- strLunarMonth
- strLunarDay
๐ง QString kdk::KLunarCalendarInfo::getLunarDay (int year, int month, int day)
่ทๅๅๅๆฅ โ grabs the lunar day. ๐
Parameters
- year
- month
- day
Returns
(blank in the docs, don't come for me ๐)
๐ธ QString kdk::KLunarCalendarInfo::getLunarFestival (int month, int day)
่ฎก็ฎๅๅ่ๆฅ(ๅฟ ้กปไผ ๅ ฅๅๅๅนดไปฝๆไปฝ) โ calculates lunar festivals. Heads up though: you must pass in the lunar year and month, not the Gregorian ones. Read that again bestie, it matters. ๐จ
Parameters
- month
- day
Returns
(nothing written here ๐)
โญ QString kdk::KLunarCalendarInfo::getLunarInfo (int year, int month, int day, bool yearInfo, bool monthInfo, bool dayInfo)
่ทๅๆๅฎๅนดๆๆฅๅๅไฟกๆฏ โ fetch the lunar info for a given year/month/day. ๐
Parameters
- year
- month
- day
- yearInfo
- monthInfo
- dayInfo
Returns
(empty in the original, no cap)
๐ QString kdk::KLunarCalendarInfo::getLunarMonthDay (int year, int month, int day)
่ทๅๅๅๆๆฅ โ gets you the lunar month and day. ๐๏ธ๐ซ
Parameters
- year
- month
- day
Returns
(docs said nothing, I'm just the messenger ๐ญ)
๐ QString kdk::KLunarCalendarInfo::getLunarYear (int year)
่ฎก็ฎๅๅๅนด ๅคฉๅนฒ+ๅฐๆฏ+็่ โ the lunar year, fully decked out: ๅคฉๅนฒ (Heavenly Stem) + ๅฐๆฏ (Earthly Branch) + ็่ (the zodiac animal). It's giving full costume change. ๐๐ฐ๐
Parameters
- year
Returns
(blank, bestie ๐)
โจ QString kdk::KLunarCalendarInfo::getLunarYearMonthDay (int year, int month, int day)
่ทๅๅๅๅนดๆๆฅ โ the whole lunar year + month + day trio, served fresh. ๐
Parameters
- year
- month
- day
Returns
(nothing documented ๐)
๐ int kdk::KLunarCalendarInfo::getMonthDays (int year, int month)
่ฎก็ฎๆๅฎๅนดๆ่ฏฅๆๅ ฑๅคๅฐๅคฉ โ how many days does that specific year + month have in total? She'll tell you. ๐ข
Parameters
- year
- month
Returns
(empty in the source, fr)
๐ซถ QString kdk::KLunarCalendarInfo::getSolarTerms (int year, int month, int day)
่ฎก็ฎไบๅๅ่ๆฐ โ the 24 solar terms (ไบๅๅ่ๆฐ, a whole vibe). ๐พโ๏ธ๐ธ
Parameters
- year
- month
- day
Returns
(blank in the docs ๐ญ)
๐ int kdk::KLunarCalendarInfo::getTotalMonthDays (int year, int month)
่ฎก็ฎๆๅฎๅนดๆๅฏนๅบๅฐ่ฏฅๆๅ ฑๅคๅฐๅคฉ โ the cumulative total of days up to and including that month for that year. ๐
Parameters
- year
- month
Returns
(nothing written, iykyk ๐)
๐ bool kdk::KLunarCalendarInfo::isLoopYear (int year)
่ฎก็ฎๆฏๅฆ้ฐๅนด โ is it a leap year or not? boolean answer, no drama. โ โ
Parameters
- year
Returns
(empty in the docs ๐)
๐๏ธ Author ๐๏ธ
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. ๐คโจ
okay that's the whole page bestie, you ate it ๐ and for the cute sign-off: this gorgeous thing comes from LIBKYSDK-APPLICATIONS, Version version:3.0, and the manual page answers to the name kdk::KLunarCalendarInfo(3). go forth and calendar, queen ๐๐ธ
๐ฆ where this page comes from
- arch rolling: libkysdk-applications 3.0.1.2-1 ยท BSD-3-Clause AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND MIT AND MulanPSL-2.0
- ubuntu resolute: libkysdk-applications-dev 3.0.1.1-1 ยท LGPL-3.0-or-later
- ubuntu stonking: libkysdk-applications-dev 3.0.1.2-1build2 ยท LGPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms