Examples of date()


Examples of com.trolltech.qt.core.QDateTime.date()

        return false;
    } else {
      if (noteDate.date().year() < current.date().year())
          return true;
      else
        return noteDate.date().month() - current.date().month() != 0;
    }
  }
  @Override
  public String getLabel(){
    return QCoreApplication.translate("cx.fbn.nevernote.filters.DateAttributeFilter", "This Month");
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime.date()

  public boolean attributeCheck(Note n) {
        QDateTime noteDate, current;
        noteDate = noteTime(n);
        current = currentTime();

    int ny = noteDate.date().year();
    int cy = current.date().year();
    int nm = noteDate.date().month();
    int cm = current.date().month();

    if (cy-ny >= 0)  {
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime.date()

        noteDate = noteTime(n);
        current = currentTime();

    int ny = noteDate.date().year();
    int cy = current.date().year();
    int nm = noteDate.date().month();
    int cm = current.date().month();

    if (cy-ny >= 0)  {
      cm = cm+12*(cy-ny);
    } else {
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime.date()

  public boolean attributeCheck(Note n) {
        QDateTime noteDate, current;
        noteDate = noteTime(n);
        current = currentTime();

    int ny = noteDate.date().year();
    int cy = current.date().year();
    if (checkSince)
      return cy-ny == 0;
    else
      return cy-ny > 0;
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime.date()

  public boolean attributeCheck(Note n) {
        QDateTime noteDate, current;
        noteDate = noteTime(n);
        current = currentTime();

    int ny = noteDate.date().year();
    int cy = current.date().year();
    if (checkSince)
      return cy-ny <=1;
    else
      return cy-ny > 1;
View Full Code Here

Examples of java.time.chrono.Chronology.date()

        long getValue(DateTimePrintContext context, long value) {
            long absValue = Math.abs(value);
            int baseValue = this.baseValue;
            if (baseDate != null) {
                Chronology chrono = Chronology.from(context.getTemporal());
                baseValue = chrono.date(baseDate).get(field);
            }
            if (value >= baseValue && value < baseValue + EXCEED_POINTS[minWidth]) {
                // Use the reduced value if it fits in minWidth
                return absValue % EXCEED_POINTS[minWidth];
            }
View Full Code Here

Examples of java.time.chrono.Chronology.date()

        @Override
        int setValue(DateTimeParseContext context, long value, int errorPos, int successPos) {
            int baseValue = this.baseValue;
            if (baseDate != null) {
                Chronology chrono = context.getEffectiveChronology();
                baseValue = chrono.date(baseDate).get(field);

                // In case the Chronology is changed later, add a callback when/if it changes
                final long initialValue = value;
                context.addChronoChangedListener(
                        (_unused) ->  {
View Full Code Here

Examples of org.dbwiki.web.server.ConfigSetting.date()

    ConfigSetting cSet = settings.lastElement();
    for (int iSetting = 0; iSetting < settings.size(); iSetting++) {
      ConfigSetting setting = settings.get(iSetting);
      body.openTR();
      body.openTD(CSS.CSSList);
      body.link(baseURL + "?" + setting.toURLString(), setting.date(), CSS.CSSList);
      body.closeTD();
      body.openTD(CSS.CSSList);
      ConfigSetting s = new ConfigSetting(setting.getLayoutVersion(), cSet.getTemplateVersion(), cSet.getStyleSheetVersion(), cSet.getURLDecodingRulesVersion());
      body.link(baseURL + "?" + s.toURLString(), this.valueOf(setting.getLayoutVersion()), CSS.CSSList);
      body.closeTD();
View Full Code Here

Examples of org.easetech.easytest.annotation.Format.date()

   
    protected String[] getDateFormat(EasyFrameworkMethod testMethod) {
        String[] dateFormat = null;
        Format formatToUse = formatToUse(testMethod);
        if(formatToUse != null) {
            dateFormat = formatToUse.date();
        }
        return dateFormat;
       
    }
   
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IValueFactory.date()

      } else if (name.equals("isDateTime")) {
        return makeResult(getTypeFactory().boolType(), vf.bool(getValue().isDateTime()), ctx);
      } else if (name.equals("justDate")) {
        if (!dt.isTime()) {
          return makeResult(getTypeFactory().dateTimeType(),
              vf.date(dt.getYear(), dt.getMonthOfYear(), dt.getDayOfMonth()), ctx);
        }
        throw new UnsupportedOperation("Can not retrieve the date component of a time value",ctx.getCurrentAST());
      } else if (name.equals("justTime")) {
        if (!dt.isDate()) {
          return makeResult(getTypeFactory().dateTimeType(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.