Added solution for javatime