Project: Birt
Bug 269124 Enhance BIRT Duration Type Support
Reported: 2009-03-17 23:30:50 | Status: verified fixed

At current stage, the BIRT support following Duration manipulation: year( String lexicalDuration) month(String lexicalDuration) day(String lexicalDuration) hour(String lexicalDuration) minute(String lexicalDuration) second(String lexicalDuration) timeInMills(String lexicalDuration,DateTime startDate) isLongerThan(String lexicalDuration1,String lexicalDuration2) isShorterThan(String lexicalDuration1,String lexicalDuration2) However, this is not enough for user to effectively manipulate the duration string. Specifically, we want to include following functions: String add(String duration) String subtract(String duration) Date addTo(String duration, Date date) String negate(String duration) int compare( String duration1, String duration2) String multiply( double factor ) int getSign( String duration)

Files changed in fix:
core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtDurationTest.java data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtDuration.java