docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimeFormatter

    Provides the ability to format a DateTime or TimeSpan object.

    Inheritance
    object
    FormatterBase
    TimeFormatter
    Implements
    IFormatter
    ISerializationCallbackReceiver
    Inherited Members
    FormatterBase.Names
    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class TimeFormatter : FormatterBase, IFormatter, ISerializationCallbackReceiver

    Constructors

    Name Description
    TimeFormatter()

    Creates a new instance of the formatter.

    Properties

    Name Description
    DefaultFormatOptions

    Determines the options for time formatting.

    DefaultNames

    Default names to use when Names is null.

    DefaultTwoLetterISOLanguageName

    The ISO language name, which will be used for getting the TimeTextInfo.

    Methods

    Name Description
    TryEvaluateFormat(IFormattingInfo)

    Writes the current value to the output, using the specified format. IF this extension cannot write the value, returns false, otherwise true.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)