Changeset 160
- Timestamp:
- Feb 2, 2010, 2:06:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Event.groovy
r139 r160 27 27 28 28 def getDuration() { 29 //endTime - startTime // this is not documented and does not work either 30 // so, it's useless. 29 // time diff between end and start date 31 30 // thus, do this manually as follows 32 31 … … 42 41 43 42 43 def getPrettyDuration() { 44 // return a string that prints the duration sensibly. 45 // the largest date unit (sec, min, h, day, month, or year) 46 // is output 47 } 48 49 44 50 def getDurationString() { 45 51 def d = getDuration() … … 48 54 49 55 56 def isSamplingEvent() { 57 return ( this instanceof SamplingEvent ) 58 } 50 59 }
Note: See TracChangeset
for help on using the changeset viewer.