public static PeriodType hours ( ) { PeriodType type = cHours ; if ( type == null ) { type = new PeriodType ( "Hours" , new DurationFieldType [ ] { DurationFieldType . hours ( ) } , new int [ ] { - 1 , - 1 , - 1 , - 1 , 0 , - 1 , - 1 , - 1 , } ) ; cHours = type ; } return type ; }
Gets a type that defines just the hours field .