yearChinese

yearChinese, function

def const pure yearChinese(d: date): number

Returns the Chinese calendar 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" with
  T.Label
  yearChinese(T.D) as "YearChinese"

This outputs the following table:

Label YearChinese
2020-01-01 2133
2019-05-01 2133

See also

User Contributed Notes
0 notes + add a note