gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 08:10:40 25 4
gpt4 key购买 nike

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

YearMonthDay.toString介绍

[英]Output the date in the ISO8601 format YYYY-MM-DD.
[中]以ISO8601格式YYYY-MM-DD输出日期。

代码示例

代码示例来源:origin: org.jadira.usertype/usertype.core

@Override
  public String toNonNullValue(YearMonthDay value) {
    return value.toString();
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
  public String deserialize(Object object) {
    YearMonthDay date = (YearMonthDay) object;
    if (date != null) {
      return date.toString("yyyy-MM-dd");
    }
    return "";
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public String getSubmitEvaluationDateTextBoxValue() {
  if (submitEvaluationDateTextBoxValue == null) {
    List<Exam> exams = getExamList();
    if (exams != null && !exams.isEmpty()) {
      Exam exam = exams.get(exams.size() - 1);
      submitEvaluationDateTextBoxValue = exam.getDayDateYearMonthDay().toString("dd/MM/yyyy");
    }
  }
  return submitEvaluationDateTextBoxValue;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public String getCheckBoxValue() {
  StringBuilder stringBuilder = new StringBuilder();
  stringBuilder.append(getDate().toString("yyyyMMdd"));
  stringBuilder.append(getLesson().getExternalId());
  return stringBuilder.toString();
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public LabelFormatter getDescription() {
  final LabelFormatter labelFormatter = new LabelFormatter();
  labelFormatter.appendLabel(Bundle.APPLICATION, "label.InstallmentWithMonthlyPenalty.description", getInstallmentOrder()
      .toString(), getStartDate().toString("dd/MM/yyyy"), getEndDate().toString("dd/MM/yyyy"), getPenaltyPercentage()
      .multiply(BigDecimal.valueOf(100)).toString(), getWhenStartToApplyPenalty().toString("dd/MM/yyyy"));
  return labelFormatter;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public LabelFormatter getDescription() {
  return new LabelFormatter().appendLabel(Bundle.APPLICATION, "label.InstallmentForFirstTimeStudents.description",
      getInstallmentOrder().toString(), getStartDate().toString("dd/MM/yyyy"), getEndDate().toString("dd/MM/yyyy"),
      getPenaltyPercentage().multiply(BigDecimal.valueOf(100)).toString(), getNumberOfDaysToStartApplyingPenalty()
          .toString());
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
  public String getInfo() {
    Lesson theLesson = getLessonInstancesSet().iterator().next().getLesson();
    String asd = theLesson.getShift().getCourseLoadsSet().iterator().next().getType().getFullNameTipoAula();
    for (YearMonthDay ymd : theLesson.getAllLessonDates()) {
      asd += "\n" + ymd.toString();
    }
    return asd;
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public String getRegistrationStartDate() {
  if (request.isRequestForRegistration()) {
    return ((RegistrationAcademicServiceRequest) request).getRegistration().getStartDate().toString("dd/MM/yyyy");
  }
  return "--";
}

代码示例来源:origin: FenixEdu/fenixedu-academic

protected void generateCheckSum() {
  StringBuilder stringBuilder = new StringBuilder();
  stringBuilder.append(getExamDateYearMonthDay() != null ? getExamDateYearMonthDay().toString() : "").append(
      getGradeValue());
  stringBuilder.append(getEvaluationSeason().getExternalId());
  stringBuilder.append(getEnrolment().getStudentCurricularPlan().getRegistration().getNumber());
  setCheckSum(FenixDigestUtils.createDigest(stringBuilder.toString()));
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public void setEnrolment(Grouping grouping) {
  this.enrolmentPast = new DateTime(grouping.getEnrolmentEndDay()).isBeforeNow();
  this.enrolmentElapsing =
      new DateTime(grouping.getEnrolmentBeginDay()).isBeforeNow()
          && new DateTime(grouping.getEnrolmentEndDay()).isAfterNow();
  this.enrolment =
      YearMonthDay.fromDateFields(grouping.getEnrolmentBeginDayDate()).toString() + " "
          + BundleUtil.getString(Bundle.STUDENT, "message.out.until") + " "
          + YearMonthDay.fromDateFields(grouping.getEnrolmentEndDayDate()).toString();
}

代码示例来源:origin: FenixEdu/fenixedu-academic

protected void generateDismissalApprovementlDateIfRequired(HtmlTableRow enrolmentRow, YearMonthDay approvementDate) {
  if (isViewerAllowedToViewFullStudentCurriculum(studentCurricularPlan)) {
    if (approvementDate != null) {
      generateCellWithSpan(enrolmentRow, approvementDate.toString(DATE_FORMAT),
          BundleUtil.getString(Bundle.APPLICATION, "label.data.avaliacao"), renderer.getCreationDateCellClass());
    } else {
      generateCellWithText(enrolmentRow, EMPTY_INFO, renderer.getCreationDateCellClass());
    }
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

protected void generateEvaluationDateIfRequired(HtmlTableRow externalEnrolmentRow, YearMonthDay evaluationDate) {
  if (isViewerAllowedToViewFullStudentCurriculum(studentCurricularPlan)) {
    if (evaluationDate != null) {
      generateCellWithSpan(externalEnrolmentRow, evaluationDate.toString(DATE_FORMAT),
          BundleUtil.getString(Bundle.APPLICATION, "creationDate"), renderer.getCreationDateCellClass());
    } else {
      generateCellWithText(externalEnrolmentRow, EMPTY_INFO, renderer.getCreationDateCellClass());
    }
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

private void fillSpecialSeasonExam(final ExamDateCertificateRequest request, final Enrolment enrolment,
    final ExamDateEntry entry) {
  final Exam specialSeasonExam = request.getExamFor(enrolment, Season.SPECIAL_SEASON_OBJ);
  if (specialSeasonExam != null) {
    entry.setSpecialSeasonDate(specialSeasonExam.getDayDateYearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
    entry.setSpecialSeasonHour(specialSeasonExam.getBeginningDateHourMinuteSecond().toString("HH:mm"));
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

private void fillSecondSeasonExam(final ExamDateCertificateRequest request, final Enrolment enrolment,
    final ExamDateEntry entry) {
  final Exam secondSeasonExam = request.getExamFor(enrolment, Season.SEASON2_OBJ);
  if (secondSeasonExam != null) {
    entry.setSecondSeasonDate(secondSeasonExam.getDayDateYearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
    entry.setSecondSeasonHour(secondSeasonExam.getBeginningDateHourMinuteSecond().toString("HH:mm"));
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public void setRealization(WrittenEvaluation writtenEvaluation) {
  this.realizationPast = writtenEvaluation.getBeginningDateTime().isBeforeNow();
  this.realization =
      YearMonthDay.fromDateFields(writtenEvaluation.getBeginningDateTime().toDate()).toString()
          + " "
          + writtenEvaluation.getBeginningDateTime().getHourOfDay()
          + ":"
          + (writtenEvaluation.getBeginningDateTime().getMinuteOfHour() == 0 ? "00" : writtenEvaluation
              .getBeginningDateTime().getMinuteOfHour());
}

代码示例来源:origin: FenixEdu/fenixedu-academic

private void fillFirstSeasonExam(final ExamDateCertificateRequest request, final Enrolment enrolment,
    final ExamDateEntry entry) {
  final Exam firstSeasonExam = request.getExamFor(enrolment, Season.SEASON1_OBJ);
  if (firstSeasonExam != null) {
    entry.setFirstSeasonDate(firstSeasonExam.getDayDateYearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
    entry.setFirstSeasonHour(firstSeasonExam.getBeginningDateHourMinuteSecond().toString("HH:mm"));
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public LabelFormatter getDescription() {
  final LabelFormatter labelFormatter = new LabelFormatter();
  labelFormatter.appendLabel(getJustificationType().getQualifiedName(), Bundle.ENUMERATION);
  String dispatchDate = getDispatchDate() != null ? getDispatchDate().toString("dd/MM/yyyy") : "-";
  labelFormatter.appendLabel(" (").appendLabel("label.in", Bundle.APPLICATION).appendLabel(" ").appendLabel(dispatchDate)
      .appendLabel(")");
  return labelFormatter;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public LabelFormatter getDescription() {
  final LabelFormatter labelFormatter = new LabelFormatter();
  labelFormatter.appendLabel(getJustificationType().getQualifiedName(), Bundle.ENUMERATION);
  String penaltyExemptionDate =
      getPenaltyExemptionDispatchDate() != null ? getPenaltyExemptionDispatchDate().toString("dd/MM/yyyy") : "-";
  labelFormatter.appendLabel(" (").appendLabel("label.in", Bundle.APPLICATION).appendLabel(" ")
      .appendLabel(penaltyExemptionDate).appendLabel(")");
  return labelFormatter;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public LabelFormatter getDescription() {
  final LabelFormatter labelFormatter = new LabelFormatter();
  labelFormatter.appendLabel(getJustificationType().getQualifiedName(), Bundle.ENUMERATION);
  String gratuityExemptionDate =
      getGratuityExemptionDispatchDate() != null ? getGratuityExemptionDispatchDate().toString("dd/MM/yyyy") : "-";
  labelFormatter.appendLabel(" (").appendLabel("label.in", Bundle.APPLICATION).appendLabel(" ")
      .appendLabel(gratuityExemptionDate).appendLabel(")");
  return labelFormatter;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public LabelFormatter getDescription() {
  final LabelFormatter labelFormatter = new LabelFormatter();
  labelFormatter.appendLabel(getJustificationType().getQualifiedName(), Bundle.ENUMERATION);
  String formatedDate = getDispatchDate() != null ? getDispatchDate().toString("dd/MM/yyyy") : "-";
  labelFormatter.appendLabel(" (").appendLabel("label.in", Bundle.APPLICATION).appendLabel(" ").appendLabel(formatedDate)
      .appendLabel(")");
  return labelFormatter;
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com