gw.util.time.CoreMonthEnhancement.gsx Maven / Gradle / Ivy
package gw.util.time
uses java.time.Month
uses java.time.MonthDay
uses java.time.Year
uses java.time.YearMonth
enhancement CoreMonthEnhancement : Month
{
@BinderSeparators( :accepted = {"-"})
function prefixBind( day: Integer ) : MonthDay {
return MonthDay.of( this, day )
}
@BinderSeparators( :accepted = {"-"})
function postfixBind( year: Integer ) : YearMonth {
return YearMonth.of( year, this )
}
@BinderSeparators( :accepted = {"-"})
function postfixBind( jer: JapaneseEraYear ) : JapaneseEraYearMonth {
return new JapaneseEraYearMonth( jer, this )
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy