@Test public void testParseCrawlDate() { assertEquals("2000-09-20T00:05:00Z", WARCIndexer.parseCrawlDate(TIMESTAMP_12)); assertEquals("2000-09-20T00:05:45Z", WARCIndexer.parseCrawlDate(TIMESTAMP_14)); assertEquals("2000-09-20T00:05:45Z", WARCIndexer.parseCrawlDate(TIMESTAMP_16)); assertEquals("2000-09-20T00:05:45Z", WARCIndexer.parseCrawlDate(TIMESTAMP_17)); }
protected static String parseCrawlDate( String waybackDate ) { DateTimeFormatter iso_df = ISODateTimeFormat.dateTimeNoMillis() .withZone(DateTimeZone.UTC); return iso_df.print(new org.joda.time.DateTime( getWaybackDate(waybackDate))); }
WARCIndexer { protected static String parseCrawlDate( String waybackDate ) { DateTimeFormatter iso_df = ISODateTimeFormat.dateTimeNoMillis() .withZone(DateTimeZone.UTC); return iso_df.print(new org.joda.time.DateTime( getWaybackDate(waybackDate))); } }
WARCIndexer { protected static String parseCrawlDate( String waybackDate ) { DateTimeFormatter iso_df = ISODateTimeFormat.dateTimeNoMillis() .withZone(DateTimeZone.UTC); return iso_df.print(new org.joda.time.DateTime( getWaybackDate(waybackDate))); } WARCIndexer();  WARCIndexer( Config conf ); }
WARCIndexer { protected static String parseCrawlDate( String waybackDate ) { DateTimeFormatter iso_df = ISODateTimeFormat.dateTimeNoMillis() .withZone(DateTimeZone.UTC); return iso_df.print(new org.joda.time.DateTime( getWaybackDate(waybackDate))); } WARCIndexer();  WARCIndexer( Config conf ); void setAnnotations(Annotations ann, SurtPrefixSet openAccessSurts); boolean isCheckSolrForDuplicates(); void setCheckSolrForDuplicates(boolean checkSolrForDuplicates); SolrRecord extract( String archiveName, ArchiveRecord record ); SolrRecord extract( String archiveName, ArchiveRecord record, boolean isTextIncluded ); static Date getWaybackDate( String timestamp ); static String extractYear( String timestamp ); }
WARCIndexer { protected static String parseCrawlDate( String waybackDate ) { DateTimeFormatter iso_df = ISODateTimeFormat.dateTimeNoMillis() .withZone(DateTimeZone.UTC); return iso_df.print(new org.joda.time.DateTime( getWaybackDate(waybackDate))); } WARCIndexer();  WARCIndexer( Config conf ); void setAnnotations(Annotations ann, SurtPrefixSet openAccessSurts); boolean isCheckSolrForDuplicates(); void setCheckSolrForDuplicates(boolean checkSolrForDuplicates); SolrRecord extract( String archiveName, ArchiveRecord record ); SolrRecord extract( String archiveName, ArchiveRecord record, boolean isTextIncluded ); static Date getWaybackDate( String timestamp ); static String extractYear( String timestamp ); static final boolean CANONICALISE_HOST; static SimpleDateFormat formatter; }