Search Results
OK to copy?
Examples 1 through 10 of
112 (0.12 seconds)
Class:
com.technoetic.xplanner.domain.TimeEntry
©,
Rating:
100% of 2,
C1
Class: org.springframework.util.ResponseTimeMonitorTests ©, Rating: 100% of 2, C1
Class: com.technoetic.xplanner.domain.Integration ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.forms.AbstractEditorForm ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.domain.virtual.Timesheet ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.domain.Iteration ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.charts.DataSampleData ©, Rating: 0% of 0, C2
Class: org.apache.tomcat.util.buf.DateTool ©, Rating: 67% of 3, C1
Class: org.apache.tomcat.util.buf.DateTool ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.db.AggregateTimesheetQuery ©, Rating: 0% of 0, C2
61 public double getDuration() {
62 if (startTime != null && endTime != null) {
63 duration = (endTime.getTime() - startTime.getTime()) / 3600000.0;
64 }
65 return duration;
Class: org.springframework.util.ResponseTimeMonitorTests ©, Rating: 100% of 2, C1
053 ResponseTimeMonitorImpl impl = new ResponseTimeMonitorImpl();
054 Date d = impl.getLoadDate();
055 assertEquals(now.getTime(), d.getTime(), 300);
056 }
057
Class: com.technoetic.xplanner.domain.Integration ©, Rating: 0% of 0, C1
67 public double getDuration() {
68 if (whenStarted != null && whenComplete != null) {
69 long delta = whenComplete.getTime() - whenStarted.getTime();
70 return delta / 3600000.0;
71 } else {
Class: com.technoetic.xplanner.forms.AbstractEditorForm ©, Rating: 0% of 0, C1
063
064 protected void require(ActionErrors errors, Date value, String msgkey) {
065 if (value.getTime() == 0) {
066 error(errors, msgkey);
067 }
Class: com.technoetic.xplanner.domain.virtual.Timesheet ©, Rating: 0% of 0, C1
027 cal.setTime(startDate);
028
029 for (; cal.getTimeInMillis() <= endDate.getTime(); cal.add(Calendar.DATE, 1)) {
030 dailyEntries.put(cal.getTime(), new DailyTimesheetEntry(cal.getTime(),
031 new BigDecimal(0.0)));
Class: com.technoetic.xplanner.domain.Iteration ©, Rating: 0% of 0, C1
122
123 public boolean isCurrent() {
124 return endDate.getTime() > System.currentTimeMillis();
125 }
126
Class: com.technoetic.xplanner.charts.DataSampleData ©, Rating: 0% of 0, C2
094 for (int i = 0; i < samples.size(); i++) {
095 DataSample dataSample = (DataSample)samples.get(i);
096 long d = Math.abs(now - dataSample.getSampleTime().getTime());
097 if (d < precision && d < delta) {
098 delta = d;
Class: org.apache.tomcat.util.buf.DateTool ©, Rating: 67% of 3, C1
154 try {
155 date = format[i].parse(dateString);
156 return date.getTime();
157 } catch (ParseException e) { }
158 catch (StringIndexOutOfBoundsException e) { }
Class: org.apache.tomcat.util.buf.DateTool ©, Rating: 0% of 0, C1
111
112 public static String format1123( Date d,DateFormat df ) {
113 long dt = d.getTime() / 1000;
114 if ((rfc1123DS != null) && (dt == rfc1123Sec))
115 return rfc1123DS;
Class: com.technoetic.xplanner.db.AggregateTimesheetQuery ©, Rating: 0% of 0, C2
072 PreparedStatement stmt = conn.prepareStatement(query);
073 stmt.setDate(1, new java.sql.Date(this.startDate.getTime()));
074 stmt.setDate(2, new java.sql.Date(this.endDate.getTime()));
075
076 ResultSet results = stmt.executeQuery();