File was renamed from src/pages/home/desktop/components/Calendar.js |
| | |
| | | date = new Date(); |
| | | } |
| | | return [this.dateOfYear(date), this.weekOfDate(date), |
| | | this.timeWithoutSecond(date)].join(" "); |
| | | this.timeWithoutSecond(date)].join(" "); |
| | | }, |
| | | |
| | | lunarYear: date => { |
| | |
| | | year--; |
| | | } |
| | | return heavenlyStems[year % heavenlyStems.length] + earthlyBranches[year |
| | | % earthlyBranches.length] + '年'; |
| | | % earthlyBranches.length] + '年'; |
| | | }, |
| | | |
| | | lunarDateI18n: function (data) { |
| | |
| | | return this.lunarYear(date) + this.lunarDateI18n(dateData[0][1] + day - 1) |
| | | } else { |
| | | return this.lunarYear(date) + this.lunarDateI18n( |
| | | dateData[1][1] + day - (dateData[1][0] % 100)) |
| | | dateData[1][1] + day - (dateData[1][0] % 100)) |
| | | } |
| | | }, |
| | | |