View Javadoc
1   package com.github.davidmoten.aws.lw.client;
2   
3   import static org.junit.Assert.assertEquals;
4   
5   import java.time.Instant;
6   import java.time.temporal.TemporalAccessor;
7   
8   import org.junit.Test;
9   
10  public class FormatsTest {
11      
12      @Test
13      public void testFullDate() {
14          String s = "Wed, 25 Aug 2021 21:55:47 GMT";
15          TemporalAccessor t = Formats.FULL_DATE.parse(s);
16          assertEquals(1629928547000L, Instant.from(t).toEpochMilli());
17      }
18  
19  }