/packages/apps/Email/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/webkit/Source/JavaScriptCore/wtf/ |
DateMath.h | 161 timeZone = adoptArrayPtr(new char[inZoneSize]); 162 strncpy(timeZone.get(), inTm.tm_zone, inZoneSize); 164 timeZone = nullptr; 187 ret.tm_zone = timeZone.get(); 205 if (rhs.timeZone) { 206 int inZoneSize = strlen(rhs.timeZone.get()) + 1; 207 timeZone = adoptArrayPtr(new char[inZoneSize]); 208 strncpy(timeZone.get(), rhs.timeZone.get(), inZoneSize); 210 timeZone = nullptr [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...] |
/libcore/luni/src/main/java/java/util/ |
TimeZone.java | 28 * {@code TimeZone} represents a time zone, primarily used for configuring a {@link Calendar} or 31 * <p>Most applications will use {@link #getDefault} which returns a {@code TimeZone} based on 34 * <p>You can also get a specific {@code TimeZone} {@link #getTimeZone by Olson ID}. 64 public abstract class TimeZone implements Serializable, Cloneable { 81 private static final TimeZone GMT = new SimpleTimeZone(0, "GMT"); 82 private static final TimeZone UTC = new SimpleTimeZone(0, "UTC"); 84 private static TimeZone defaultTimeZone; 88 public TimeZone() {} 129 public static synchronized TimeZone getDefault() { 133 return (TimeZone) defaultTimeZone.clone() [all...] |
/frameworks/base/core/java/android/app/ |
AlarmManager.java | 297 * @param timeZone in the format understood by {@link java.util.TimeZone} 299 public void setTimeZone(String timeZone) { 301 mService.setTimeZone(timeZone);
|
/frameworks/base/core/java/android/widget/ |
TextClock.java | 37 import java.util.TimeZone; 146 final String timeZone = intent.getStringExtra("time-zone"); 147 createTime(timeZone); 237 private void createTime(String timeZone) { 238 if (timeZone != null) { 239 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); 358 * @see TimeZone 359 * @see java.util.TimeZone#getAvailableIDs() 371 * @param timeZone The desired time zone's ID as specified in {@link TimeZone [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZonePickerDialog.java | 59 String timeZone = null; 63 timeZone = b.getString(BUNDLE_TIME_ZONE); 70 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this,
|
TimeZoneResultAdapter.java | 65 TextView timeZone; 71 vh.timeZone = (TextView) v.findViewById(R.id.time_zone); 189 * Saves the given timezone ID as a recent timezone under shared 193 * @param id the ID of the timezone to save 286 vh.timeZone.setText(tzi.mDisplayName);
|
TimeZonePickerView.java | 56 String timeZone, long timeMillis, OnTimeZoneSetListener l, 66 TimeZoneData tzd = new TimeZoneData(mContext, timeZone, timeMillis);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 31 import java.util.TimeZone; 66 String[] timeZones = TimeZone.getAvailableIDs(); 67 String timeZone = timeZones[0]; 70 alarmManager.setTimeZone(timeZone);
|
/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...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarUtils.java | 195 * @param timeZone The time zone to set Calendar to, or 198 public void setTimeZone(Context context, String timeZone) { 199 if (TextUtils.isEmpty(timeZone)) { 207 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { 213 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) { 217 mHomeTZ = timeZone;
|
/external/smack/src/org/jivesoftware/smackx/packet/ |
Time.java | 29 import java.util.TimeZone; 86 TimeZone timeZone = cal.getTimeZone(); 91 cal.getTimeInMillis() - timeZone.getOffset(cal.getTimeInMillis()))); 125 time.getTime() - TimeZone.getDefault().getOffset(time.getTime())));
|