Example usage for java.time LocalDate atTime

List of usage examples for java.time LocalDate atTime

Introduction

In this page you can find the example usage for java.time LocalDate atTime.

Prototype

public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) 

Source Link

Document

Combines this date with a time to create a LocalDateTime .

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDate a = LocalDate.of(2014, 6, 30);

    LocalDateTime l = a.atTime(2, 3, 4, 5);
    System.out.println(l);//w  w w  . j  a  va2s  .c  o m
}