getyear()getyear()

返回 datetime 参数的年份部分。Returns the year part of the datetime argument.

示例Example

T
| extend year = getyear(datetime(2015-10-12))
// year == 2015