docs.unity3d.com
    Show / Hide Table of Contents

    Class TimeTextInfo

    Supplies the localized text used for TimeSpan formatting.

    Inheritance
    Object
    TimeTextInfo
    Namespace: UnityEngine.Localization.SmartFormat.Utilities
    Syntax
    public class TimeTextInfo : object

    Constructors

    TimeTextInfo(String, String, String, String, String, String, String)

    Declaration
    public TimeTextInfo(string week, string day, string hour, string minute, string second, string millisecond, string lessThan)
    Parameters
    Type Name Description
    String week
    String day
    String hour
    String minute
    String second
    String millisecond
    String lessThan

    TimeTextInfo(PluralRules.PluralRuleDelegate, String[], String[], String[], String[], String[], String[], String[], String[], String[], String[], String[], String[], String)

    Declaration
    public TimeTextInfo(PluralRules.PluralRuleDelegate pluralRule, string[] week, string[] day, string[] hour, string[] minute, string[] second, string[] millisecond, string[] w, string[] d, string[] h, string[] m, string[] s, string[] ms, string lessThan)
    Parameters
    Type Name Description
    PluralRules.PluralRuleDelegate pluralRule
    String[] week
    String[] day
    String[] hour
    String[] minute
    String[] second
    String[] millisecond
    String[] w
    String[] d
    String[] h
    String[] m
    String[] s
    String[] ms
    String lessThan

    Methods

    GetLessThanText(String)

    Declaration
    public string GetLessThanText(string minimumValue)
    Parameters
    Type Name Description
    String minimumValue
    Returns
    Type Description
    String

    GetUnitText(TimeSpanFormatOptions, Int32, Boolean)

    Declaration
    public virtual string GetUnitText(TimeSpanFormatOptions unit, int value, bool abbr)
    Parameters
    Type Name Description
    TimeSpanFormatOptions unit
    Int32 value
    Boolean abbr
    Returns
    Type Description
    String

    Extension Methods

    TupleExtensions.IsValueTuple(Object)
    TupleExtensions.GetValueTupleItemObjects(Object)
    TupleExtensions.GetValueTupleItemObjectsFlattened(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023