Changeset 629 for trunk/grails-app/domain
- Timestamp:
- Jun 28, 2010, 10:17:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Event.groovy
r602 r629 56 56 ] 57 57 58 /** 59 * get the duration 60 * @return RelTime 61 */ 62 def getDuration() { 63 return new RelTime(startTime, endTime) 64 } 58 65 59 66 /** … … 66 73 } 67 74 75 /** 76 * get a prettified duration 77 * @return String 78 */ 79 static def getPrettyDuration(RelTime duration) { 80 return duration.toPrettyRoundedString(); 81 } 68 82 83 def getPrettyDuration() { 84 getPrettyDuration(getDuration()) 85 } 69 86 70 87 /** … … 76 93 return new RelTime(startTime, endTime).toPrettyRoundedString(); 77 94 } 78 79 80 81 82 83 95 84 96 /**
Note: See TracChangeset
for help on using the changeset viewer.