How do we identify whether the current device time mode is Automatic or Manual?

Hello Everyone,

Is there any method or callback event to obtain the current time and date mode (Automatic or Manual) in Swift?

In Android, Settings.Global.AUTO_TIME is used for the same.

Could anyone advise on the equivalent functionality or approach for iOS development?

Thanks in advance!

There’s no API to get that setting.

What do you need it for?

Most folks who ask about this are looking for some sort of secure timestamp. I’ve talked about this extensively before here on DevForums. You can find my current thinking here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi @eskimo I need the Manual/Automatic timestamp status to verify whether the user has altered the date for obtaining a License Extension within our application. I need to restrict the user from advancing in the use of the license if the date has been tampered with.

How do we identify whether the current device time mode is Automatic or Manual?
 
 
Q