HomeSort by relevance Sort by last modified time
    Searched refs:timeZone (Results 1 - 25 of 128) sorted by null

1 2 3 4 5 6

  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
YMDDateFormatter.java 13 import java.util.TimeZone;
23 private TimeZone timeZone;
35 TimeZone.getDefault());
44 * @param timeZone the time zone to use
47 TimeZone timeZone) {
50 this.timeZone = timeZone;
54 this.df.setTimeZone(timeZone);
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
BasicDurationFormatterFactory.java 11 import java.util.TimeZone;
30 private TimeZone timeZone;
39 this.timeZone = TimeZone.getDefault();
131 * @param timeZone The time zone to use.
134 public DurationFormatterFactory setTimeZone(TimeZone timeZone) {
135 if (!timeZone.equals(this.timeZone)) {
    [all...]
BasicDurationFormatter.java 11 import java.util.TimeZone;
22 private TimeZone timeZone;
44 TimeZone timeZone) {
50 this.timeZone = timeZone;
81 locName, timeZone);
86 public DurationFormatter withTimeZone(TimeZone tz) {
87 if (!tz.equals(timeZone)) {
    [all...]
DurationFormatterFactory.java 10 import java.util.TimeZone;
68 * @param timeZone The time zone to set.
71 public DurationFormatterFactory setTimeZone(TimeZone timeZone);
PeriodBuilderFactory.java 10 import java.util.TimeZone;
88 * Sets the time zone for the factory. This can affect the timezone
90 * @param timeZone the timeZone
93 PeriodBuilderFactory setTimeZone(TimeZone timeZone);
  /external/v8/test/intl/date-format/
timezone.js 31 assertEquals(getDefaultTimeZone(), df.resolvedOptions().timeZone);
33 df = Intl.DateTimeFormat(undefined, {timeZone: 'UtC'});
34 assertEquals('UTC', df.resolvedOptions().timeZone);
36 df = Intl.DateTimeFormat(undefined, {timeZone: 'gmt'});
37 assertEquals('UTC', df.resolvedOptions().timeZone);
39 df = Intl.DateTimeFormat(undefined, {timeZone: 'America/Los_Angeles'});
40 assertEquals('America/Los_Angeles', df.resolvedOptions().timeZone);
42 df = Intl.DateTimeFormat(undefined, {timeZone: 'Europe/Belgrade'});
43 assertEquals('Europe/Belgrade', df.resolvedOptions().timeZone);
46 df = Intl.DateTimeFormat(undefined, {timeZone: 'Etc/UTC'})
    [all...]
resolved-options.js 40 assertTrue(resolved.hasOwnProperty('timeZone'));
41 assertEquals(getDefaultTimeZone(), resolved.timeZone);
66 assertTrue(resolved.hasOwnProperty('timeZone'));
87 second: 'numeric', timeZoneName: 'short', timeZone: 'UTC'});
93 assertTrue(resolved.hasOwnProperty('timeZone'));
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DateTime.java 28 import java.util.TimeZone;
40 private final int timeZone;
42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) {
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
50 this.timeZone = timeZone;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) {
70 Calendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT+0"));
74 if (timeZone != Integer.MIN_VALUE) {
75 int minutes = ((timeZone / 100) * 60) + timeZone % 100
    [all...]
  /packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/
DateTime.java 28 import java.util.TimeZone;
40 private final int timeZone;
42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) {
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
50 this.timeZone = timeZone;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) {
70 Calendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT+0"));
74 if (timeZone != Integer.MIN_VALUE) {
75 int minutes = ((timeZone / 100) * 60) + timeZone % 100
    [all...]
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
XMPDateTimeImpl.java 16 import java.util.TimeZone;
44 private TimeZone timeZone = TimeZone.getTimeZone("UTC");
68 // extract the date and timezone from the calendar provided
70 TimeZone zone = calendar.getTimeZone();
87 this.timeZone = intCalendar.getTimeZone();
93 * a <code>Date</code> and a <code>TimeZone</code>.
96 * @param timeZone a TimeZone how to interpret the dat
    [all...]
  /frameworks/opt/timezonepicker/src/com/android/timezonepicker/
TimeZonePickerDialog.java 61 String timeZone = null;
65 timeZone = b.getString(BUNDLE_TIME_ZONE);
72 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this,
  /cts/tests/tests/permission/src/android/permission/cts/
NoSystemFunctionPermissionTest.java 32 import java.util.TimeZone;
67 String[] timeZones = TimeZone.getAvailableIDs();
68 String timeZone = timeZones[0];
71 alarmManager.setTimeZone(timeZone);
  /frameworks/base/core/java/android/widget/
TextClock.java 41 import java.util.TimeZone;
158 final String timeZone = intent.getStringExtra("time-zone");
159 createTime(timeZone);
251 private void createTime(String timeZone) {
252 if (timeZone != null) {
253 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone));
424 * @see TimeZone
425 * @see java.util.TimeZone#getAvailableIDs()
437 * @param timeZone The desired time zone's ID as specified in {@link TimeZone
    [all...]
  /libcore/luni/src/main/java/java/util/
TimeZone.java 32 * {@code TimeZone} represents a time zone, primarily used for configuring a {@link Calendar} or
35 * <p>Most applications will use {@link #getDefault} which returns a {@code TimeZone} based on
38 * <p>You can also get a specific {@code TimeZone} {@link #getTimeZone by Olson ID}.
68 public abstract class TimeZone implements Serializable, Cloneable {
72 * Helper class to parse a custom timezone. This is in a separate class as regular expressions
73 * cannot be compile-time initialized, so that static field is separated out from TimeZone
85 private static TimeZone getCustomTimeZone(String id) {
129 private static final TimeZone GMT = new SimpleTimeZone(0, "GMT");
130 private static final TimeZone UTC = new SimpleTimeZone(0, "UTC");
132 private static TimeZone defaultTimeZone
    [all...]
  /libcore/luni/src/main/java/libcore/util/
ZoneInfo.java 29 import java.util.TimeZone;
33 * Our concrete TimeZone implementation, backed by zoneinfo data.
35 * @hide - used to implement TimeZone
37 public final class ZoneInfo extends TimeZone {
55 private final int mDstSavings; // Implements TimeZone.getDSTSavings.
145 // This isn't generally useful, but it's exposed by TimeZone.getDSTSavings.
271 @Override public boolean hasSameRules(TimeZone timeZone) {
272 if (!(timeZone instanceof ZoneInfo)) {
275 ZoneInfo other = (ZoneInfo) timeZone;
    [all...]
  /external/jsilver/src/org/clearsilver/jni/
JniHdf.java 25 import java.util.TimeZone;
213 /** Export a date to a clearsilver tree using a specified timezone */
214 public void exportDate(String hdfname, TimeZone timeZone, Date date) {
219 Calendar cal = Calendar.getInstance(timeZone);
252 boolean tzNegative = timeZone.getRawOffset() < 0;
253 int tzAbsolute = java.lang.Math.abs(timeZone.getRawOffset()/1000);
262 /** Export a date to a clearsilver tree using a specified timezone */
268 TimeZone timeZone = TimeZone.getTimeZone(tz)
    [all...]
  /frameworks/base/core/java/android/app/
AlarmManager.java 704 * after a reboot. Use {@link java.util.TimeZone#setDefault} if you just want to change the
706 * {@link java.util.TimeZone} to APIs that require it rather than changing the time zone for
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
CalendarUtils.java 196 * @param timeZone The time zone to set Calendar to, or
199 public void setTimeZone(Context context, String timeZone) {
200 if (TextUtils.isEmpty(timeZone)) {
208 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) {
214 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) {
218 mHomeTZ = timeZone;
  /packages/apps/Exchange/src/com/android/exchange/utility/
CalendarUtilities.java 63 import java.util.TimeZone;
126 // TimeZone cache; we parse/decode as little as possible, because the process is quite slow
127 private static HashMap<String, TimeZone> sTimeZoneCache = new HashMap<String, TimeZone>();
129 private static HashMap<TimeZone, String> sTziStringCache = new HashMap<TimeZone, String>();
131 private static final TimeZone UTC_TIMEZONE = TimeZone.getTimeZone("UTC");
162 static final TimeZone sGmtTimeZone = TimeZone.getTimeZone("GMT")
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1GeneralizedTime.java 9 import java.util.TimeZone;
208 TimeZone timeZone = TimeZone.getDefault();
209 int offset = timeZone.getRawOffset();
220 if (timeZone.useDaylightTime() && timeZone.inDaylightTime(this.getDate()))
288 dateF.setTimeZone(new SimpleTimeZone(0, TimeZone.getDefault().getID()));
  /external/jsilver/src/org/clearsilver/
HDF.java 22 import java.util.TimeZone;
97 * Export a date to a clearsilver tree using a specified timezone
99 void exportDate(String hdfName, TimeZone timeZone, Date date);
102 * Export a date to a clearsilver tree using a specified timezone
  /cts/tests/tests/provider/src/android/provider/cts/
CalendarTest.java 452 String timeZone = values.getAsString(Events.EVENT_TIMEZONE);
453 Time time = new Time(timeZone);
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DeviceOwnerProvisioningService.java 364 setTimeAndTimezone(params.timeZone, params.localTime);
374 private void setTimeAndTimezone(String timeZone, long localTime) {
377 if (timeZone != null) {
378 if (DEBUG) ProvisionLogger.logd("Setting time zone to " + timeZone);
379 am.setTimeZone(timeZone);
386 ProvisionLogger.loge("Alarm manager failed to set the system time/timezone.");
  /packages/apps/Calendar/src/com/android/calendar/widget/
CalendarAppWidgetModel.java 34 import java.util.TimeZone;
251 public CalendarAppWidgetModel(Context context, String timeZone) {
253 Time time = new Time(timeZone);
263 public void buildFromCursor(Cursor cursor, String timeZone) {
264 final Time recycle = new Time(timeZone);
271 mShowTZ = !TextUtils.equals(timeZone, Time.getCurrentTimezone());
273 mHomeTZName = TimeZone.getTimeZone(timeZone).getDisplayName(recycle.isDst != 0,
274 TimeZone.SHORT);
296 // Adjust all-day times into local timezone
    [all...]
  /external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
TimeTest.java 21 import java.util.TimeZone;
97 private void testToString(String timeZone, long[] theTimes,
99 // Set the timezone
100 TimeZone.setDefault(TimeZone.getTimeZone(timeZone));
116 TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
140 // Ensure that the timezone is set to GMT
141 TimeZone.setDefault(TimeZone.getTimeZone("GMT"))
    [all...]

Completed in 1783 milliseconds

1 2 3 4 5 6