Java Date and Time API explained by example

The handling of dates and times is a sure source of pain and confusion. While time is a familiar concept that everybody knows intuitively, it is difficult to formalise when developing an application. This post aims to shed some light by presenting different use cases implemented with Java Date and Time API. Flight tickets The …