Example usage for java.time ZoneOffset equals

List of usage examples for java.time ZoneOffset equals

Introduction

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

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this offset is equal to another offset.

Usage

From source file:Main.java

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