Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

TimeFormatter Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public TimeFormatter();

Description

Initializes the extension with a default Unity.SmartStrings.Extensions.Time.Utilities.TimeTextInfo.

Culture is determined in this sequence: 1. Get the culture from the FormattingInfo.FormatterOptions. 2. Get the culture from the IFormatProvider argument (which may be a Globalization.CultureInfo) to SmartFormatter.Format 3. Get the culture from the selected locale. 4. The Globalization.CultureInfo.CurrentUICulture.TimeFormatter makes use of PluralRules and PluralLocalizationFormatter.