Swift Date Components & Calculations Tutorial

Описание к видео Swift Date Components & Calculations Tutorial

Go to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

In this video I show you how to create a Swift Date object from DateComponents and use those dates to demonstrate a few different calculations. I show you how to add or subtracts dates from each other, how to get the time interval between two dates and how to check if two dates are in the same time period. Swift's Calendar object is what makes this all relatively simple for us developers.

My iOS Dev Courses:
https://seanallen.teachable.com/

Project Source Code:
https://seanallen.teachable.com/p/sou...

X (Twitter):
Sean Allen -   / seanallen_dev  

Hired.com:
https://hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:
https://gumroad.com/a/762098803

Donny Wals - Combine:
https://gumroad.com/a/909014131

Mark Moeyken’s SwiftUI Books:
www.bigmountainstudio.com/swiftui-views-book/fzc51

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
https://gumroad.com/a/656585843

Timestamps:
0:00 - Date Components
0:51 - Create a Date from DateComponents
3:08 - Get Specific Component from a Date
5:12 - Add or Subtract Date from other Date
6:38 - Get Start/End of Time Period from Date
8:47 - Get Time Interval Between Dates
9:50 - Are Two Dates in the Same Time Period

#swift #softwaredeveloper #iosdeveloper

Комментарии

Информация по комментариям в разработке