Package org.joda.time

Examples of org.joda.time.DateTime$Property


    }

    public String getDateAndTimeString() {
        if( dateAndTimeString == null ) {
            // Build a String of format yyyy.mm.dd hh:mm:ssGMT
            final DateTime dateTime = new DateTime(getDateAndTime(), DateTimeZone.UTC);
            final DateMidnight date = dateTime.toDateMidnight();
            final TimeOfDay time = dateTime.toTimeOfDay();

            final String dateStr = DateFun.FORMAT_DATE_EXT.print(date);
            final String timeStr = DateFun.FORMAT_TIME_EXT.print(time);

            final StringBuilder sb = new StringBuilder(29);
View Full Code Here


        final int countTodaysMessages  = MessageStorage.inst().getMessageCount(board, 0);
        final int countAllMessages     = MessageStorage.inst().getMessageCount(board, -1);
        final int countFlaggedMessages = MessageStorage.inst().getFlaggedMessageCount(board);
        final int countStarredMessages = MessageStorage.inst().getStarredMessageCount(board);
        final int countUnreadMessages  = MessageStorage.inst().getUnreadMessageCount(board);
        final DateTime dateTime = MessageStorage.inst().getDateTimeOfLatestMessage(board);
        final String dateStr;
        if (dateTime != null) {
            final DateMidnight date = dateTime.toDateMidnight();
            dateStr = DateFun.FORMAT_DATE_EXT.print(date);
        } else {
            dateStr = "---";
        }
View Full Code Here

      sb.append("<b>Expression</b>:\n");
      sb.append(regex.getExpression());
      sb.append("\n\n<b>Description</b>:\n");
      sb.append(regex.getDescription());
      sb.append("\n\n<b>Submission date</b>:\n");
      sb.append(new DateTime(regex.getTimestamp() * 1000).toString());

      _regexDescriptionLabel.setText(sb.toString());
      _importRegexButton.setEnabled(true);
      _viewOnlineButton.setEnabled(true);
    }
 
View Full Code Here

    }
  }

  @Override
  public void jobBegin(AnalysisJob job) {
    String now = new DateTime().toString(DateTimeFormat.fullTime());
    _progressInformationPanel.addUserLog("Job begin (" + now + ")");
  }
View Full Code Here

    _progressInformationPanel.addUserLog("Job begin (" + now + ")");
  }

  @Override
  public void jobSuccess(AnalysisJob job) {
    String now = new DateTime().toString(DateTimeFormat.fullTime());
    _progressInformationPanel.addUserLog("Job success (" + now + ")");
    _progressInformationPanel.onSuccess();
  }
View Full Code Here

    _progressInformationPanel.updateProgress(table, currentRow);
  }

  @Override
  public void rowProcessingSuccess(AnalysisJob job, final Table table) {
    String now = new DateTime().toString(DateTimeFormat.fullTime());
    _progressInformationPanel.addUserLog("Row processing for " + table.getQualifiedLabel() + " finished (" + now
        + "). Generating results ...");
  }
View Full Code Here

        //DateTime dtFrom = new DateTime(1455, 1, 1, 1, 1, 1, 1);
        //DateTime dtTo = new DateTime(1960, 2, 10, 1, 1, 1, 1);
        if (model.getUnit() == DateTime.class) {
            paintUpperRulerForInterval(g2d,
                    new DateTime(new Date(min)),
                    new DateTime(new Date(max)));
        }

        g2d.setColor(settings.defaultStrokeColor);
        g2d.drawRect((int) sf, settings.tmMarginTop, sw, height - settings.tmMarginBottom - 1);

        double v = model.getValueFromFloat(currentMousePositionX * (1.0 / width));

        v += model.getMinValue();

        if (v != Double.NEGATIVE_INFINITY && v != Double.POSITIVE_INFINITY) {
            String str = "";
            int strw = 0;
            if (model.getUnit() == DateTime.class) {
                DateTime d = new DateTime(new Date((long) v));
                if (d != null) {

                    DateTimeFormatter fmt = DateTimeFormat.forPattern("dd/MM/yyyy HH:mm:ss");
                    str = fmt.withLocale(LOCALE).print(d);
                    strw = (int) (settings.tip.fontMetrics.getStringBounds(str, null)).getWidth() + 4;
View Full Code Here

    protected long getTimeInMillis() {
        return dt.getMillis()// For JDK 1.4 we can use "cal.getTimeInMillis()"
    }
   
    public static RubyTime newTime(Ruby runtime, long milliseconds) {
        return newTime(runtime, new DateTime(milliseconds));
    }
View Full Code Here

        adjustment = adjustment / 1000;

        time += adjustment;

        RubyTime newTime = new RubyTime(getRuntime(), getMetaClass());
        newTime.dt = new DateTime(time).withZone(dt.getZone());
        newTime.setUSec(micro);

        return newTime;
    }
View Full Code Here

        adjustment = adjustment / 1000;

        time -= adjustment;

        RubyTime newTime = new RubyTime(getRuntime(), getMetaClass());
        newTime.dt = new DateTime(time).withZone(dt.getZone());
        newTime.setUSec(micro);

        return newTime;
    }
View Full Code Here

TOP

Related Classes of org.joda.time.DateTime$Property

Copyright © 2018 www.massapicom. 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.