Ignore:
Timestamp:
Mar 31, 2010, 1:42:00 PM (10 years ago)
Author:
gav
Message:

Scroll month feature to task search calendar.
Add reasoning, asset and sub item columns on procedure tab of task show view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/DateUtilService.groovy

    r214 r474  
    7777
    7878    /**
     79    * Get the date one month in the future.
     80    * @param date The Date object to start with.
     81    * @returns A Date object one month in the future.
     82    */
     83    public static Date getNextMonth(Date date) {
     84        use(TimeCategory) {
     85            date + 1.months
     86        }
     87    }
     88
     89    /**
     90    * Get the date one month ago.
     91    * @param date The Date object to start with.
     92    * @returns A Date object one month ago.
     93    */
     94    public static Date getPreviousMonth(Date date) {
     95        use(TimeCategory) {
     96            date - 1.months
     97        }
     98    }
     99
     100    /**
    79101    * Make a date object from supplied year, month, day values.
    80102    * The Calendar.getInstance() or Calendar.instance factory returns a new calendar instance, usually
Note: See TracChangeset for help on using the changeset viewer.