Lines Matching full:time
29 import android.text.format.Time;
46 * This class contains methods specific to reading and writing time zone
63 private volatile static String mHomeTZ = Time.getCurrentTimezone();
70 // reasons, as it's what PreferenceManager assigned the first time the file was created.
74 * This is the key used for writing whether or not a home time zone should
79 * This is the key used for writing the time zone that should be used if
80 * home time zones are enabled for the Calendar app.
86 * time zone settings in Calendar.
155 * Formats a date or a time range according to the local conventions.
157 * This formats a date/time range using Calendar's time zone and the
161 * the UTC time zone instead.
163 * @param context the context is required only if the time is shown
164 * @param startMillis the start time in UTC milliseconds
165 * @param endMillis the end time in UTC milliseconds
168 * @return a string containing the formatted date/time range.
175 tz = Time.TIMEZONE_UTC;
188 * Writes a new home time zone to the db.
190 * Updates the home time zone in the db asynchronously and updates
191 * the local cache. Sending a time zone of
193 * to the device's time zone. null or empty tz will be ignored.
196 * @param timeZone The time zone to set Calendar to, or
202 Log.d(TAG, "Empty time zone, nothing to be done.");
257 * Gets the time zone that Calendar should be displayed in
259 * This is a helper method to get the appropriate time zone for Calendar. If this
260 * is the first time this method has been called it will initiate an asynchronous
268 * @return The string value representing the time zone Calendar should display
275 mHomeTZ = prefs.getString(KEY_HOME_TZ, Time.getCurrentTimezone());
297 return mUseHomeTZ ? mHomeTZ : Time.getCurrentTimezone();
301 * Forces a query of the database to check for changes to the time zone.