«
Rule languages supports MonthDay
md = MonthDay.new(m: 12, d: 25)
logger.info("md: #{md}")
result = <type>.parse('<value>').between?(<range>)
logger.info("between? #{result}")
type | value | range | result | |
---|---|---|---|---|
MonthDay | 01-20 | '12-01'..'12-05' | false | |
MonthDay | 12-01 | '12-01'..'12-05' | true | |
MonthDay | 12-03 | '12-01'..'12-05' | true | |
MonthDay | 12-05 | '12-01'..'12-05' | true | |
MonthDay | 12-05 | '12-01'...'12-05' | false | |
MonthDay | 12-06 | '12-01'..'12-05' | false |
type | value | range | result | |
---|---|---|---|---|
MonthDay | 12-01 | '12-02'..'12-02' | false | |
MonthDay | 12-02 | '12-02'..'12-02' | true | |
MonthDay | 12-03 | '12-02'..'12-02' | false |
result = <type>.parse('<value>').between?(<range>)
logger.info("between? #{result}")
type | value | range | result | |
---|---|---|---|---|
MonthDay | 02-29 | '02-01'..'03-01' | true | |
MonthDay | 02-29 | '02-01'...'03-01' | true |
result = <type>.parse('<value>').between?(<range>)
logger.info("between? #{result}")
type | value | range | result | |
---|---|---|---|---|
MonthDay | 11-25 | '12-01'..'01-05' | false | |
MonthDay | 12-01 | '12-01'..'01-05' | true | |
MonthDay | 12-25 | '12-01'..'01-05' | true | |
MonthDay | 01-01 | '12-01'..'01-05' | true | |
MonthDay | 01-05 | '12-01'..'01-05' | true | |
MonthDay | 01-05 | '12-01'...'01-05' | false | |
MonthDay | 01-20 | '12-01'..'01-05' | false |