org.joda.time.DateTime.isEqualNow()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(196)

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

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);

相关文章

DateTime类方法