Show
Ignore:
Timestamp:
08/11/10 12:55:02 (22 months ago)
Author:
mszopinski
Message:

calendar, one-day display

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ssme/trunk/flex/Common/src/com/kh/ssme/util/DateUtil.as

    r4037 r4040  
    109109        } 
    110110 
     111        /** 
     112         * Returns whether this DateUtil represents a time before the time represented by the specified date param 
     113         * @param date 
     114         * @return 
     115         */ 
     116        public function before(date:Date):Boolean{ 
     117            return date_.time < date.time; 
     118        } 
     119 
     120        /** 
     121         * Returns whether this DateUtil represents a time after the time represented by the specified date param 
     122         * @param date 
     123         * @return 
     124         */ 
     125        public function after(date:Date):Boolean{ 
     126            return date_.time < date.time; 
     127        } 
     128 
     129        /** 
     130         * Compares the time values (millisecond offsets from the Epoch) represented by this DateUtil and given Date. 
     131         * @param date 
     132         * @return the value 0 if the time represented by the argument is equal to the time represented by this DateUtil; 
     133         *      a value less than 0 if the time of this Calendar is before the time represented by the argument; 
     134         *      and a value greater than 0 if the time of this Calendar is after the time represented by the argument.  
     135         */ 
     136        public function compare(date:DateUtil):int{ 
     137            return (date_.time - date.timestamp) as int; 
     138        } 
     139 
     140        /** 
     141         * String representation of this DateUtil  
     142         * @return 
     143         */ 
     144        public function toString():String{ 
     145            return "[DateUtil: "+date_.toString()+"]"; 
     146        } 
    111147 
    112148        //----------------------------------------------