Changeset 701
- Timestamp:
- Jul 23, 2010, 1:08:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Event.groovy
r698 r701 72 72 */ 73 73 def getStartTimeString() { 74 return new RelTime(startTime).toPretty RoundedString();74 return new RelTime(startTime).toPrettyString(); 75 75 } 76 76 … … 81 81 */ 82 82 def getDurationString() { 83 return new RelTime(startTime, endTime).toPretty RoundedString();83 return new RelTime(startTime, endTime).toPrettyString(); 84 84 } 85 85 … … 89 89 */ 90 90 static def getPrettyDuration(RelTime duration) { 91 return duration.toPretty RoundedString();91 return duration.toPrettyString(); 92 92 } 93 93 … … 97 97 98 98 /** 99 * Get short, human readable string representing the duration between startTime and endTime99 * Get human readable string representing the duration between startTime and endTime, rounded to one unit (weeks/days/hours etc.) 100 100 * 101 101 * @return String 102 102 */ 103 def get ShortDuration() {103 def getRoundedDuration() { 104 104 return new RelTime(startTime, endTime).toPrettyRoundedString(); 105 105 }
Note: See TracChangeset
for help on using the changeset viewer.