# Sandbox.SandboxSystemExtensions.Humanize

## Overload 1

```csharp
static string Humanize(System.DateTime dateTime)
```

Convert date into a human readable relative time string.

### Parameters

- `dateTime` (`System.DateTime`)

### Returns

`string`

## Overload 2

```csharp
static string Humanize(System.DateTimeOffset dateTime)
```

Convert date into a human readable relative time string.

### Parameters

- `dateTime` (`System.DateTimeOffset`)

### Returns

`string`

## Overload 3

```csharp
static string Humanize(System.TimeOnly dateTime)
```

Convert date into a human readable relative time string.

### Parameters

- `dateTime` (`System.TimeOnly`)

### Returns

`string`

## Overload 4

```csharp
static string Humanize(System.DateOnly dateTime)
```

Convert date into a human readable relative time string.

### Parameters

- `dateTime` (`System.DateOnly`)

### Returns

`string`

## Overload 5

```csharp
static string Humanize(System.TimeSpan dateTime, int precision = 1)
```

Convert date into a human readable relative time string.

### Parameters

- `dateTime` (`System.TimeSpan`)
- `precision` (`int`), default `1`

### Returns

`string`

## Overload 6

```csharp
static string Humanize(System.TimeSpan timespan, bool shortVersion = False, bool minutes = True, bool hours = True, bool days = True)
```

Humanize a timespan into "x hours", "x seconds"

### Parameters

- `timespan` (`System.TimeSpan`)
- `shortVersion` (`bool`), default `False`
- `minutes` (`bool`), default `True`
- `hours` (`bool`), default `True`
- `days` (`bool`), default `True`

### Returns

`string`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
