time difference

    0

    3

    Duration is a Duration struct that defines the time in milliseconds between two calls to the between() method.

    import java.time.Duration;
    
    Duration duration = Duration.between(, );
    //long minutes = duration.toMinutes();
    //long hours = duration.toHours();
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.