本文整理了Java中org.joda.time.DateTime.isEqualNow()
方法的一些代码示例,展示了DateTime.isEqualNow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateTime.isEqualNow()
方法的具体详情如下:
包路径:org.joda.time.DateTime
类名称:DateTime
方法名:isEqualNow
暂无
代码示例来源:origin: onelogin/java-saml
DateTime notOnOrAfterDate = Util.parseDateTime(naAttribute.getNodeValue());
notOnOrAfterDate = notOnOrAfterDate.plus(Constants.ALOWED_CLOCK_DRIFT * 1000);
if (notOnOrAfterDate.isEqualNow() || notOnOrAfterDate.isBeforeNow()) {
throw new ValidationError("Could not validate timestamp: expired. Check system clock.", ValidationError.ASSERTION_EXPIRED);
代码示例来源:origin: onelogin/java-saml
if (noa.isEqualNow() || noa.isBeforeNow()) {
validationIssues.add(new SubjectConfirmationIssue(i, "SubjectConfirmationData is no longer valid"));
continue;
代码示例来源:origin: onelogin/java-saml
String notOnOrAfter = rootElement.getAttribute("NotOnOrAfter");
DateTime notOnOrAfterDate = Util.parseDateTime(notOnOrAfter);
if (notOnOrAfterDate.isEqualNow() || notOnOrAfterDate.isBeforeNow()) {
throw new ValidationError("Could not validate timestamp: expired. Check system clock.", ValidationError.RESPONSE_EXPIRED);
代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl
public boolean isOnCurrentPeriod() {
boolean isOnCurrentPeriod = false;
if (getCalendarEntry() != null) {
DateTime beginPeriodDateTime = getCalendarEntry().getBeginPeriodFullDateTime();
DateTime endPeriodDateTime = getCalendarEntry().getEndPeriodFullDateTime();
isOnCurrentPeriod = (beginPeriodDateTime.isEqualNow() || beginPeriodDateTime.isBeforeNow()) && endPeriodDateTime.isAfterNow();
}
return isOnCurrentPeriod;
}
代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl
public boolean isOnCurrentPeriod() {
boolean isOnCurrentPeriod = false;
if (getCalendarEntry() != null) {
DateTime beginPeriodDateTime = getCalendarEntry().getBeginPeriodFullDateTime();
DateTime endPeriodDateTime = getCalendarEntry().getEndPeriodFullDateTime();
isOnCurrentPeriod = (beginPeriodDateTime.isEqualNow() || beginPeriodDateTime.isBeforeNow()) && endPeriodDateTime.isAfterNow();
}
return isOnCurrentPeriod;
}
代码示例来源:origin: onelogin/java-saml
if (sessionExpiration != null) {
sessionExpiration = sessionExpiration.plus(Constants.ALOWED_CLOCK_DRIFT * 1000);
if (sessionExpiration.isEqualNow() || sessionExpiration.isBeforeNow()) {
throw new ValidationError("The attributes have expired, based on the SessionNotOnOrAfter of the AttributeStatement of this Response", ValidationError.SESSION_EXPIRED);
内容来源于网络,如有侵权,请联系作者删除!