Example usage for java.time ZoneOffset compareTo

List of usage examples for java.time ZoneOffset compareTo

Introduction

In this page you can find the example usage for java.time ZoneOffset compareTo.

Prototype

@Override
public int compareTo(ZoneOffset other) 

Source Link

Document

Compares this offset to another offset in descending order.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    System.out.println(z.compareTo(ZoneOffset.UTC));
}