Example usage for java.time LocalDateTime toLocalDate

List of usage examples for java.time LocalDateTime toLocalDate

Introduction

In this page you can find the example usage for java.time LocalDateTime toLocalDate.

Prototype

@Override
public LocalDate toLocalDate() 

Source Link

Document

Gets the LocalDate part of this date-time.

Usage

From source file:rjc.jplanner.model.DateTime.java

/***************************************** constructor *****************************************/
public DateTime(LocalDateTime dt) {
    // constructor
    Date date = new Date(dt.toLocalDate());
    Time time = new Time(dt.toLocalTime());
    m_milliseconds = date.epochday() * MILLISECONDS_IN_DAY + time.milliseconds();
}