View Javadoc
1   package com.github.davidmoten.aws.lw.client;
2   
3   import java.time.format.DateTimeFormatter;
4   import java.util.Locale;
5   
6   public final class Formats {
7   
8       private Formats() {
9           // prevent instantiation
10      }
11  
12      /**
13       * A common date-time format used in the AWS API. For example {@code Last-Modified}
14       * header for an S3 object uses this format.
15       * 
16       * <p>
17       * See <a href=
18       * "https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html">Common
19       * Request Headers</a> and <a href=
20       * "https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html">Common
21       * Response Headers</a>.
22       */
23      public static final DateTimeFormatter FULL_DATE = DateTimeFormatter //
24              .ofPattern("EEE, d MMM yyyy HH:mm:ss z", Locale.ENGLISH);
25  
26  }