add Minutes to LocalDateTime - Java java.time

Java examples for java.time:LocalDateTime

Description

add Minutes to LocalDateTime

Demo Code


//package com.java2s;

import java.time.LocalDateTime;

public class Main {
    public static LocalDateTime addMinutes(LocalDateTime inputDateTime,
            int minutesToAdd) {
        return inputDateTime.plusMinutes(minutesToAdd);
    }//  w  w w  .  j  av  a  2  s.co  m
}

Related Tutorials