Changeset 579 for trunk/grails-app/domain
- Timestamp:
- Jun 17, 2010, 3:06:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/RelTime.groovy
r564 r579 86 86 if (seconds > 0) { stringValue += seconds + "s "; } 87 87 88 if (reltime == 0) stringValue = "0s"; 89 88 90 return stringValue.trim(); 89 91 } … … 115 117 if (seconds > 0) { values << handleNumerus(seconds, " second") } 116 118 119 if (reltime == 0) values << "0 seconds"; 120 117 121 return stringValue + values.join(', ').trim(); 118 122 } … … 143 147 if (seconds > 0) { return stringValue + handleNumerus(seconds, " second") } 144 148 149 if (reltime == 0) values << "0 seconds"; 150 145 151 return ""; 146 152 } … … 173 179 */ 174 180 public static final String getHelpText() { 175 return "Use the first letter of weeks/days/hours/minutes/seconds, e.g. '1w 2d' for 1 week + 2 days or '10m30s for 10 minutes and 30 seconds.";181 return "Use the first letter of weeks/days/hours/minutes/seconds, e.g. '1w 2d' for 1 week + 2 days or '10m30s' for 10 minutes and 30 seconds."; 176 182 } 177 183
Note: See TracChangeset
for help on using the changeset viewer.