Example usage for java.time ZoneOffset of

List of usage examples for java.time ZoneOffset of

Introduction

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

Prototype

@SuppressWarnings("fallthrough")
public static ZoneOffset of(String offsetId) 

Source Link

Document

Obtains an instance of ZoneOffset using the ID.

Usage

From source file:com.thesoftwarefactory.vertx.web.model.Form.java

private static String format(Instant instant) {
    LocalDateTime ldt = LocalDateTime.ofInstant(instant, ZoneOffset.of("+2"));
    return INSTANT_FORMATTER.format(ldt);
}