CodeQL library for Swift
codeql/swift-all 2.0.4-dev (changelog, source)
Search

Primitive predicate date::getYear

Returns the year component of the receiver (for example 2017)

int getYear()