> ## Documentation Index
> Fetch the complete documentation index at: https://starrycodes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# int - Duration Shortcuts

> Convert any integer instantly into a Duration object (e.g., 5.seconds, 250.milliSeconds), making time-based code clean and expressive.

### 1. ⏳ Time Conversions

**days** `Duration`

Converts the integer value to a `Duration` object representing days

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
final longWait = 3.days; // Duration(days: 3)
```

**minutes** `Duration`

Converts the integer value to a `Duration` object representing minutes.

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
final shortBreak = 15.minutes; // Duration(minutes: 15)
```

**seconds** `Duration`

Converts the integer value to a `Duration` object representing seconds.

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
await Future.delayed(5.seconds);
```

**milliSeconds** `Duration`

Converts the integer value to a `Duration` object representing milliseconds.

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
final flash = 250.milliSeconds;
```

**microSeconds** `Duration`

Converts the integer value to a `Duration` object representing microseconds.

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
final tick = 50.microSeconds;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.