April 2026
Intermediate
683 pages
25h 29m
English
In this section, you’ll learn how to deal with date/time values in Swift. Let’s not name names here, but some programming languages make even the simplest date/time operations notoriously difficult and confusing. Luckily, Swift is not one of them. Quite the contrary: Such operations are quite intuitive and simple to execute, as you will see for yourself.
Let’s start with date/time data types and advance from there.
When dealing with a date or time, Date is the first class you should learn about.
Classes are part of object-oriented programming in Swift. We’ll cover this topic thoroughly in Chapter 9. However, in our current scope, the core syntax of date/time classes is very intuitive ...
Read now
Unlock full access