📜  swift 5 获取当前年份 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:57.928000             🧑  作者: Mango

代码示例1
let year = Calendar.current.component(.year, from: Date())