org.apache.shindig.common.util.DateUtil.parseRfc1123Date()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(135)

本文整理了Java中org.apache.shindig.common.util.DateUtil.parseRfc1123Date()方法的一些代码示例,展示了DateUtil.parseRfc1123Date()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateUtil.parseRfc1123Date()方法的具体详情如下:
包路径:org.apache.shindig.common.util.DateUtil
类名称:DateUtil
方法名:parseRfc1123Date

DateUtil.parseRfc1123Date介绍

[英]Parses an RFC1123 format date. Returns null if the date fails to parse for any reason.
[中]解析RFC1123格式的日期。如果由于任何原因无法解析日期,则返回null。

代码示例

代码示例来源:origin: com.lmco.shindig/shindig-common

@Test
public void parse() {
 for (int i = 0, j = rfc1123text.length; i < j; ++i) {
  assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime());
 }    
}

代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void parse() {
 for (int i = 0, j = rfc1123text.length; i < j; ++i) {
  assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime());
 }
}

代码示例来源:origin: apache/shindig

@Test
public void parse() {
 for (int i = 0, j = rfc1123text.length; i < j; ++i) {
  assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime());
 }
}

代码示例来源:origin: org.apache.shindig/shindig-common

@Test
public void parse() {
 for (int i = 0, j = rfc1123text.length; i < j; ++i) {
  assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime());
 }
}

代码示例来源:origin: org.gatein.shindig/shindig-common

@Test
public void parse() {
 for (int i = 0, j = rfc1123text.length; i < j; ++i) {
  assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime());
 }    
}

代码示例来源:origin: org.apache.shindig/shindig-common

@Test
public void parseWrongTimeZone() {
 String expires = "Mon, 12 May 2008 09:23:29 PDT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.gatein.shindig/shindig-common

@Test
public void parseAsctime() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sun Nov  6 08:49:37 1994";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void parseRfc1036() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sunday, 06-Nov-94 08:49:37 GMT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: com.lmco.shindig/shindig-common

@Test
public void parseWrongTimeZone() {
 String expires = "Mon, 12 May 2008 09:23:29 PDT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: com.lmco.shindig/shindig-common

@Test
public void parseRfc1036() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sunday, 06-Nov-94 08:49:37 GMT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: com.lmco.shindig/shindig-common

@Test
public void parseAsctime() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sun Nov  6 08:49:37 1994";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.apache.shindig/shindig-common

@Test
public void parseAsctime() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sun Nov  6 08:49:37 1994";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void parseWrongTimeZone() {
 String expires = "Mon, 12 May 2008 09:23:29 PDT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: apache/shindig

@Test
public void parseWrongTimeZone() {
 String expires = "Mon, 12 May 2008 09:23:29 PDT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: apache/shindig

@Test
public void parseRfc1036() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sunday, 06-Nov-94 08:49:37 GMT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: apache/shindig

@Test
public void parseAsctime() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sun Nov  6 08:49:37 1994";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.apache.shindig/shindig-common

@Test
public void parseRfc1036() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sunday, 06-Nov-94 08:49:37 GMT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.gatein.shindig/shindig-common

@Test
public void parseWrongTimeZone() {
 String expires = "Mon, 12 May 2008 09:23:29 PDT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.gatein.shindig/shindig-common

@Test
public void parseRfc1036() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sunday, 06-Nov-94 08:49:37 GMT";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void parseAsctime() {
 // We don't support this, though RFC 2616 suggests we should
 String expires = "Sun Nov  6 08:49:37 1994";
 assertNull(DateUtil.parseRfc1123Date(expires));
}

相关文章