Screen Time: Is there any way to get the screen time duration of apps for specific time range ?

I tried by changing the segment in the filter, but still giving duration for full day.

@State private var filter = DeviceActivityFilter(
    segment: .daily(during: timeRange),
    users: .all,
    devices: .init([.iPhone, .iPad])
)

Is there any way to get the screen time duration of apps in IOS for specific time range?

What time range would you like? Your best bet would be to use a segment interval set to .hourly. This way, you can obtain hourly segments of screen time data on the interval of your choice. Unfortunately, you won't be able to get anything more precise than this.

You can simply create the schedules From 10 am to 7pm

Thank you for your response @manishdadwal. I want to find out how much time I spend using apps during a particular time frame, like from 10:00 AM to 3:00 PM, whether it's on the same day or on different days. Which segment (.daily / .hourly / .weekly) should I use?

Screen Time: Is there any way to get the screen time duration of apps for specific time range ?
 
 
Q