Previous dates, times, timezones API of Swift are inconvenience to use. (It’s very complex to create, manipulate or everything else.)
But there’s quite nice pioneer, The Brand New Time API of Java8.
Java 8 introduced whole new API for handle date & time more efficiently and easy a.k.a LocalDateTime, ZonedDateTime(JSR-310). The main idea that is:
- Immutable-value classes
- Domain-driven design
- Separation of chronologies
Those ideas can be easily ported to another languages, like .Net’s Rx ports of another languages.
So, here’s the AnyDate, whole new Swift date & time API that has coherence between Java 8.
Features:
- Convinience typed year, month, day, time.
- Pre-defined Timezone Identifiers.
- Null-Safe types.
- Separation of chronologies.
- Coherence with Java.
- Operators supported.
- Easy to manipulate.

Leave a Reply
You must be logged in to post a comment.