Example usage for com.fasterxml.jackson.databind.util StdDateFormat subclass-usage

List of usage examples for com.fasterxml.jackson.databind.util StdDateFormat subclass-usage

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.util StdDateFormat subclass-usage.

Usage

From source file com.spotify.docker.client.DockerDateFormat.java

/**
 * Docker returns timestamps with nanosecond precision
 * (e.g. <tt>2014-10-17T21:22:56.949763914Z</tt>),
 * but {@link Date} only supports milliseconds. Creating a Date from the nanosecond timestamp
 * results in the date being set to several days after what date should be. This class converts the
 * timestamp from nanoseconds to milliseconds by removing the last six digits of the timestamp, so