> ## Documentation Index
> Fetch the complete documentation index at: https://starrycodes.mintlify.app/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.

<Steps titleSize="h3">
  <Step title="⏳ Time Conversions">
    <ResponseField name="days" type="Duration" post={["getter"]}>
      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)
      ```
    </ResponseField>

    <ResponseField name="minutes" type="Duration" post={["getter"]}>
      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)
      ```
    </ResponseField>

    <ResponseField name="seconds" type="Duration" post={["getter"]}>
      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);
      ```
    </ResponseField>

    <ResponseField name="milliSeconds" type="Duration" post={["getter"]}>
      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;
      ```
    </ResponseField>

    <ResponseField name="microSeconds" type="Duration" post={["getter"]}>
      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;
      ```
    </ResponseField>
  </Step>
</Steps>
