Search found 3 matches

by wildepete
Thu Sep 04, 2003 6:36 pm
Forum: JCommon
Topic: SerialDate should implement Comparable interface
Replies: 1
Views: 11756

SerialDate should implement Comparable interface

Just a suggestion that it would be handy if SerialDate implemented the java.util.Comparable interface. No additional methods need to me implemented. This interface only has one method which SerialDate already has: int compareTo() This would make it a little easier to use the sorting algorithms that ...
by wildepete
Thu Sep 04, 2003 6:31 pm
Forum: JCommon
Topic: SpreadsheetDate.isInRange()
Replies: 1
Views: 11266

SpreadsheetDate.isInRange()

This method has not been implemented (simply returns false), which is causing a problem with the method SerialDateUtilities.countFeb29s(). This means that I cannot calculate an accurate Actual/Actual day count fraction :? It seems like this would be fairly easy to implement using the compareTo() met...
by wildepete
Tue May 27, 2003 4:36 pm
Forum: JCommon
Topic: SerialDate.addMonths
Replies: 1
Views: 11519

SerialDate.addMonths

:? I am getting an "invalid month" exception when I try to add 2 months to a date in October. Upon investigation it looks like there is a problem with the calculation of the months in SerialDate.addMonths: int mm = (12 * base.getYYYY() + base.getMonth() + months) % 12; returns 0 for December when it...