private String formatSpecific ( TimeZone tz , NameType stdType , NameType dstType , long date , Output < TimeType > timeType ) { assert ( stdType == NameType . LONG_STANDARD || stdType == NameType . SHORT_STANDARD ) ; assert ( dstType == NameType . LONG_DAYLIGHT || dstType == NameType . SHORT_DAYLIGHT ) ; boolean isDaylight = tz . inDaylightTime ( new Date ( date ) ) ; String name = isDaylight ? getTimeZoneNames ( ) . getDisplayName ( ZoneMeta . getCanonicalCLDRID ( tz ) , dstType , date ) : getTimeZoneNames ( ) . getDisplayName ( ZoneMeta . getCanonicalCLDRID ( tz ) , stdType , date ) ; if ( name != null && timeType != null ) { timeType . value = isDaylight ? TimeType . DAYLIGHT : TimeType . STANDARD ; } return name ; }
Private method returning the time zone s specific format string .