yearStartChinese
yearStartChinese, function
def const pure yearStartChinese(d: date): date
Returns the first 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 start" with
T.Label
yearStartChinese(T.D) as "YearStartChinese"
This outputs the following table:
| Label | YearStartChinese |
|---|---|
| 2020-01-01 | 2019-02-05 |
| 2019-05-01 | 2019-02-05 |