本文整理了Java中org.apache.shindig.common.util.DateUtil.parseRfc1123Date()
方法的一些代码示例,展示了DateUtil.parseRfc1123Date()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateUtil.parseRfc1123Date()
方法的具体详情如下:
包路径:org.apache.shindig.common.util.DateUtil
类名称: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));
}
内容来源于网络,如有侵权,请联系作者删除!