Example usage for java.time OffsetDateTime timeLineOrder

List of usage examples for java.time OffsetDateTime timeLineOrder

Introduction

In this page you can find the example usage for java.time OffsetDateTime timeLineOrder.

Prototype

public static Comparator<OffsetDateTime> timeLineOrder() 

Source Link

Document

Gets a comparator that compares two OffsetDateTime instances based solely on the instant.

Usage

From source file:Main.java

public static void main(String[] args) {
    Comparator<OffsetDateTime> o = OffsetDateTime.timeLineOrder();

    System.out.println(o);
}