Changeset 701


Ignore:
Timestamp:
Jul 23, 2010, 1:08:59 PM (6 years ago)
Author:
keesvb
Message:

changed Event start time string getter to fetch the correct non-rounded start time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Event.groovy

    r698 r701  
    7272         */
    7373        def getStartTimeString() {
    74                 return new RelTime(startTime).toPrettyRoundedString();
     74                return new RelTime(startTime).toPrettyString();
    7575        }
    7676
     
    8181         */
    8282        def getDurationString() {
    83                 return new RelTime(startTime, endTime).toPrettyRoundedString();
     83                return new RelTime(startTime, endTime).toPrettyString();
    8484        }
    8585
     
    8989         */
    9090        static def getPrettyDuration(RelTime duration) {
    91                 return duration.toPrettyRoundedString();
     91                return duration.toPrettyString();
    9292        }
    9393
     
    9797
    9898        /**
    99          * Get short, human readable string representing the duration between startTime and endTime
     99         * Get human readable string representing the duration between startTime and endTime, rounded to one unit (weeks/days/hours etc.)
    100100     *
    101101         * @return String
    102102         */
    103         def getShortDuration() {
     103        def getRoundedDuration() {
    104104                return new RelTime(startTime, endTime).toPrettyRoundedString();
    105105        }
Note: See TracChangeset for help on using the changeset viewer.