yearEndChinese
yearEndChinese, function
def const pure yearEndChinese(d: date): date
Returns the last day of the Chinese year for d.
Example
table T = with
[| as Label, as D |]
[| "2020-01-01", date(2020, 1, 1) |]
[| "2019-05-01", date(2019, 5, 1) |]
show table "Chinese year end" with
T.Label
yearEndChinese(T.D) as "YearEndChinese"
This outputs the following table:
| Label | YearEndChinese |
|---|---|
| 2020-01-01 | 2020-01-24 |
| 2019-05-01 | 2020-01-24 |