Example usage for java.time Clock systemDefaultZone

List of usage examples for java.time Clock systemDefaultZone

Introduction

In this page you can find the example usage for java.time Clock systemDefaultZone.

Prototype

public static Clock systemDefaultZone() 

Source Link

Document

Obtains a clock that returns the current instant using the best available system clock, converting to date and time using the default time-zone.

Usage

From source file:org.jbb.security.impl.lockout.DateTimeProvider.java

public static void setDefault() {
    clock = Clock.systemDefaultZone();
}