Пример #1
0
 /// <summary>
 /// Returns a name in the specified {@code style} of this {@code TimeZone}
 /// suitable for presentation to the user in the default locale. If the
 /// specified {@code daylight} is {@code true}, a Daylight Saving Time name
 /// is returned (even if this {@code TimeZone} doesn't observe Daylight Saving
 /// Time). Otherwise, a Standard Time name is returned.
 ///
 /// <para>This method is equivalent to:
 /// <blockquote><pre>
 /// getDisplayName(daylight, style,
 ///                Locale.getDefault(<seealso cref="Locale.Category#DISPLAY"/>))
 /// </pre></blockquote>
 ///
 /// </para>
 /// </summary>
 /// <param name="daylight"> {@code true} specifying a Daylight Saving Time name, or
 ///                 {@code false} specifying a Standard Time name </param>
 /// <param name="style"> either <seealso cref="#LONG"/> or <seealso cref="#SHORT"/> </param>
 /// <returns> the human-readable name of this time zone in the default locale. </returns>
 /// <exception cref="IllegalArgumentException"> if {@code style} is invalid.
 /// @since 1.2 </exception>
 /// <seealso cref= #getDisplayName(boolean, int, Locale) </seealso>
 /// <seealso cref= Locale#getDefault(Locale.Category) </seealso>
 /// <seealso cref= Locale.Category </seealso>
 /// <seealso cref= java.text.DateFormatSymbols#getZoneStrings() </seealso>
 public String GetDisplayName(bool daylight, int style)
 {
     return(GetDisplayName(daylight, style, Locale.GetDefault(Locale.Category.DISPLAY)));
 }