Sample code of java.time