Example usage for java.time ZoneId SHORT_IDS

List of usage examples for java.time ZoneId SHORT_IDS

Introduction

In this page you can find the example usage for java.time ZoneId SHORT_IDS.

Prototype

Map SHORT_IDS

To view the source code for java.time ZoneId SHORT_IDS.

Click Source Link

Document

A map of zone overrides to enable the short time-zone names to be used.

Usage

From source file:org.pr.nb.clocks.model.NBClock.java

public NBClock(String zoneId) {
    this.zoneId = ZoneId.of(zoneId, ZoneId.SHORT_IDS);
    zoneDateTime = ZonedDateTime.now(this.zoneId);
    homeZone = StringUtils.equals(zoneId, ZoneId.systemDefault().getId());
}