# Sandbox.SandboxSystemExtensions.ToCountdownString

```csharp
static string ToCountdownString(System.TimeSpan span, bool includeSeconds = True)
```

Formats a remaining duration as a compact countdown, such as "2d 03h 04m 05s".
Leading zero units are omitted, and zero or negative durations return an empty string.

### Parameters

- `span` (`System.TimeSpan`): The time remaining, calculated using the caller's clock.
- `includeSeconds` (`bool`), default `True`: Includes every unit down to seconds. When false, shows days and hours, hours and minutes, or minutes alone; a positive duration below one minute is shown as "<1m".

### Returns

`string`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
