# TimeSpanFormatOptions

> Determines all options for time formatting. This one value actually contains 4 settings: Abbreviate / AbbreviateOff LessThan / LessThanOff Truncate Auto / Shortest / Fill / Full Range MilliSeconds / Seconds / Minutes / Hours / Days / Weeks (Min / Max)

## Definition

* **Type:** Enum
* **Namespace:** [Unity.SmartStrings.Extensions.Time.Utilities](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities.md)
* **Assembly:** UnityEngine.SmartStringsModule

```csharp
[Flags]
public enum TimeSpanFormatOptions
```

## Fields

| Value                                                                                                                                        | Description                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Abbreviate](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/abbreviate.md)               | Abbreviates units. Example: "1d 2h 3m 4s 5ms"                                                                                                           |
| [AbbreviateOff](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/abbreviateoff.md)         | Does not abbreviate units. Example: "1 day 2 hours 3 minutes 4 seconds 5 milliseconds"                                                                  |
| [LessThan](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/lessthan.md)                   | Displays "less than 1 (unit)" when the TimeSpan is smaller than the minimum range.                                                                      |
| [LessThanOff](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/lessthanoff.md)             | Displays "0 (units)" when the TimeSpan is smaller than the minimum range.                                                                               |
| [None](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/none.md)                           | Specifies that all `timeSpanFormatOptions` should be inherited from `TimeSpanUtility.DefaultTimeFormatOptions`.                                         |
| [RangeDays](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/rangedays.md)                 | Determines the range of units to display. You may combine two values to form the minimum and maximum for the range.                                     |
| [RangeHours](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/rangehours.md)               | Determines the range of units to display. You may combine two values to form the minimum and maximum for the range.                                     |
| [RangeMilliSeconds](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/rangemilliseconds.md) | Determines the range of units to display. You may combine two values to form the minimum and maximum for the range.                                     |
| [RangeMinutes](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/rangeminutes.md)           | Determines the range of units to display. You may combine two values to form the minimum and maximum for the range.                                     |
| [RangeSeconds](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/rangeseconds.md)           | Determines the range of units to display. You may combine two values to form the minimum and maximum for the range.                                     |
| [RangeWeeks](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/rangeweeks.md)               | Determines the range of units to display. You may combine two values to form the minimum and maximum for the range.                                     |
| [TruncateAuto](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/truncateauto.md)           | Displays all non-zero values within the range. Example: "00.23:00:59.000" = "23 hours 59 minutes"                                                       |
| [TruncateFill](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/truncatefill.md)           | Displays the highest non-zero value and all lesser values within the range. Example: "00.23:00:59.000" = "23 hours 0 minutes 59 seconds 0 milliseconds" |
| [TruncateFull](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/truncatefull.md)           | Displays all values within the range. Example: "00.23:00:59.000" = "0 days 23 hours 0 minutes 59 seconds 0 milliseconds"                                |
| [TruncateShortest](/engine/6000.7/script-reference/unity/smartstrings/extensions/time/utilities/timespanformatoptions/truncateshortest.md)   | Displays the highest non-zero value within the range. Example: "00.23:00:59.000" = "23 hours"                                                           |
