Skip to Content
Back to Actions

Updated

How to See How Long Your iPhone or Mac Has Been On

By Sindre Sorhus, who makes the Actions app

With Actions

  1. Install Actions, and open it one time.
  2. In the Shortcuts app, make a new shortcut, and add the “Get Device Details (Extended)” action.
  3. Add the “Show Content” action, and run the shortcut.

The result shows “Uptime (with sleep)” and “Uptime (without sleep)” in days, hours, and minutes. The time with sleep is the time since the device started. The time without sleep is the time that it was awake.

To use only one value, tap the “Device Details” variable, and choose “Uptime (including sleep)” or “Uptime (not including sleep)”. Use the “Format Duration” action of Actions to make the value readable text. The same shortcut works on iPhone and Mac.

Get Actions

Additional actions for the Shortcuts app

Download on the App Store

Free

Platforms
macOS, iOS, visionOS
Requires
macOS, iOS, or visionOS 26 or later
Category
Utilities
Released
October 2021
Updated
June 2026
Version
4.2.0
Size
29 MB
US App Store rating
4.8/5 (532 ratings)

More about Actions

Without an app

On a Mac, open the Terminal app, and run:

console
uptime

The text after “up” is the time since the Mac started, like “up 2 days, 15:28”. You can also open System Information (hold Option, and choose “Apple menu › System Information…”), click “Software”, and read “Time since boot”. Both include the time in sleep. For the time without sleep, use Actions.