Learn to manipulate time with ease in Clojure
Manipulating time is a difficult thing. Time was made for people. The rules are complicated and depend on where you are on Earth. Time units have varying lengths (how long is "one month"?; how long is a day when you change daylight savings?), daylight savings depends on the country you're in, and formatting dates depends on the language. It's complicated. Luckily, Joda Time does an excellent job. Joda Time is a date-time library that represents everything immutably. It's what people use when they want robust date-time calculations. clj-time wraps up the types from Joda Time and makes it easy to use from Clojure. cljs-time is a ClojureScript implementation that has an identical API.
In this course, we go through the major use cases of times and dates and time zones, how you represent each one, the operations you will likely perform on them, and other practical considerations. We don't touch on everything, but you get the major concepts and a confidence to go through the docs for yourself.
Manipulating time with clj-time
Want this course?
Love it or leave it guarantee
If you don't learn as much from this course as you thought, just ask for a refund within 30 days and I'll give you your money back.
5. Parsing and formatting dates
Parsing dates from strings and back again. It's more complicated than you think!
6. Testing with time
Testing functions that use the current time can be difficult. clj-time gives us a good solution.