Accueil‎ > ‎

Java Compare dates interval

posted 19 Jan 2017, 01:22 by Christophe Noël
La facon la plus pratique en java standard (7 ou 8)
Duration interval = Duration.between(lastupdate.toInstant(), (new Date()).toInstant());
        interval.getDays();
        interval.getHours();
Comments