黑貓的Swift筆記本·Sep 24, 2025Swift 日期處理系列筆記(一)Swift 中的 Calendar、DateComponents 與 Date:一張日曆的三種視角在 iOS 開發中,時間與日期的處理看似簡單,卻常常讓人頭痛。Swift 提供了三個關鍵角色來處理時間:Calendar、DateComponents、以及 Date。這三者之間的關係,就像是日曆、零件、以及完整的日期物件。
Masaki Horimoto·May 11, 2023【Swift】CalendarについてCalendarについて自分用のメモです。DateとかCalendarとかは 何回見てもちょっと触らないと忘れちゃうので。 公式リファレンスは以下にあります。
Sachin Sabat·Apr 4, 2022Converting Date and Time to a particular TimeZone in Swift iOSThree main structs which are pillars of iOS date time conversion are:-
Roger Serentill·Feb 2, 2020Dealing with relative dates in Swift: the cool wayHow many times did you need to create a yesterday or nextWeek variable? like:A response icon3A response icon3
In彼得潘的 Swift iOS / Flutter App 開發教室byYuwen Chiu·Nov 14, 2019#Task:Part.05–儲蓄心願編列,CoreData儲存本來預計要先把“近期帳務”完成,但要以每天日期為一個Section顯示在列表時,CoreData讀取遇到了一些困難,目前想不到方法解決😅所以我先來製作和“新增帳務”功能類似的“儲蓄心願編列”。
Quang V. Ha·May 25, 2019How to add a year to a date in Swiftit might not be as simple as adding 365 days