All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.util.time.CoreMonthEnhancement.gsx Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
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