From 170d9b8ceb2f090186cdd1dbbc5d11e9201643a4 Mon Sep 17 00:00:00 2001 From: Przemyslaw Szczepaniak Date: Thu, 1 Mar 2018 10:35:57 +0000 Subject: [PATCH] Tweak DateFormat.is24HourFormat javadoc to be more explicit. Bug: 32761394 Test: make docs Change-Id: If10da5b9d63e6e88774e333d5c266e423e6bc7c8 --- core/java/android/text/format/DateFormat.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/java/android/text/format/DateFormat.java b/core/java/android/text/format/DateFormat.java index b5a8acaf674f2..285a5f057c52a 100755 --- a/core/java/android/text/format/DateFormat.java +++ b/core/java/android/text/format/DateFormat.java @@ -158,9 +158,9 @@ public class DateFormat { private static Locale sIs24HourLocale; private static boolean sIs24Hour; - /** - * Returns true if user preference is set to 24-hour format. + * Returns true if times should be formatted as 24 hour times, false if times should be + * formatted as 12 hour (AM/PM) times. Based on the user's chosen locale and other preferences. * @param context the context to use for the content resolver * @return true if 24 hour time format is selected, false otherwise. */ @@ -169,7 +169,8 @@ public class DateFormat { } /** - * Returns true if user preference with the given user handle is set to 24-hour format. + * Returns true if times should be formatted as 24 hour times, false if times should be + * formatted as 12 hour (AM/PM) times. Based on the user's chosen locale and other preferences. * @param context the context to use for the content resolver * @param userHandle the user handle of the user to query. * @return true if 24 hour time format is selected, false otherwise.