Home
last modified time | relevance | path

Searched full:timezone (Results 1 – 25 of 709) sorted by relevance

12345678910>>...29

/external/chromium_org/chromeos/settings/
Dtimezone_settings.cc23 #include "third_party/icu/source/i18n/unicode/timezone.h"
27 // The filepath to the timezone file that symlinks to the actual timezone file.
28 const char kTimezoneSymlink[] = "/var/lib/timezone/localtime";
29 const char kTimezoneSymlink2[] = "/var/lib/timezone/localtime2";
31 // The directory that contains all the timezone files. So for timezone
32 // "US/Pacific", the actual timezone file is: "/usr/share/zoneinfo/US/Pacific"
40 // we still have 400+ zones. Relaxing the criteria for the timezone
191 // incorrect states of the timezone symlink on startup. Thus errors occuring in GetTimezoneIDAsString()
194 // Look at kTimezoneSymlink, see which timezone we are symlinked to. in GetTimezoneIDAsString()
199 LOG(ERROR) << "GetTimezoneID: Cannot read timezone symlink " in GetTimezoneIDAsString()
[all …]
Dtimezone_settings.h12 #include "third_party/icu/source/i18n/unicode/timezone.h"
17 // This interface provides access to Chrome OS timezone settings.
22 // Called when the timezone has changed. |timezone| is non-null.
23 virtual void TimezoneChanged(const icu::TimeZone& timezone) = 0;
30 // Returns the current timezone as an icu::Timezone object.
31 virtual const icu::TimeZone& GetTimezone() = 0;
34 // Sets the current timezone and notifies all Observers.
35 virtual void SetTimezone(const icu::TimeZone& timezone) = 0;
41 virtual const std::vector<icu::TimeZone*>& GetTimezoneList() const = 0;
43 // Gets timezone ID which is also used as timezone pref value.
[all …]
/external/chromium_org/v8/test/intl/date-format/
Dtimezone.js31 assertEquals(getDefaultTimeZone(), df.resolvedOptions().timeZone);
33 df = Intl.DateTimeFormat(undefined, {timeZone: 'UtC'}); property
34 assertEquals('UTC', df.resolvedOptions().timeZone);
36 df = Intl.DateTimeFormat(undefined, {timeZone: 'gmt'}); property
37 assertEquals('UTC', df.resolvedOptions().timeZone);
39 df = Intl.DateTimeFormat(undefined, {timeZone: 'America/Los_Angeles'}); property
40 assertEquals('America/Los_Angeles', df.resolvedOptions().timeZone);
42 df = Intl.DateTimeFormat(undefined, {timeZone: 'Europe/Belgrade'}); property
43 assertEquals('Europe/Belgrade', df.resolvedOptions().timeZone);
46 df = Intl.DateTimeFormat(undefined, {timeZone: 'Etc/UTC'}); property
[all …]
/external/chromium_org/chrome/browser/chromeos/timezone/
Dtimezone_request.cc5 #include "chrome/browser/chromeos/timezone/timezone_request.h"
30 "https://maps.googleapis.com/maps/api/timezone/json?";
46 // Sleep between timezone request retry on HTTP error.
49 // Sleep between timezone request retry on bad server response.
95 "TimeZone.TimeZoneRequest.Event", event, TIMEZONE_REQUEST_EVENT_COUNT); in RecordUmaEvent()
99 UMA_HISTOGRAM_SPARSE_SLOWLY("TimeZone.TimeZoneRequest.ResponseCode", code); in RecordUmaResponseCode()
102 // Slow timezone resolve leads to bad user experience.
105 UMA_HISTOGRAM_TIMES("TimeZone.TimeZoneRequest.ResponseSuccessTime", in RecordUmaResponseTime()
108 UMA_HISTOGRAM_TIMES("TimeZone.TimeZoneRequest.ResponseFailureTime", in RecordUmaResponseTime()
115 "TimeZone.TimeZoneRequest.Result", result, TIMEZONE_REQUEST_RESULT_COUNT); in RecordUmaResult()
[all …]
Dtimezone_unittest.cc7 #include "chrome/browser/chromeos/timezone/timezone_provider.h"
23 "https://localhost/maps/api/timezone/json?";
36 : url("https://localhost/maps/api/timezone/" in SimpleRequest()
51 timezone.dstOffset = 0; in SimpleRequest()
52 timezone.rawOffset = -28800; in SimpleRequest()
53 timezone.timeZoneId = "America/Los_Angeles"; in SimpleRequest()
54 timezone.timeZoneName = "Pacific Standard Time"; in SimpleRequest()
55 timezone.error_message.erase(); in SimpleRequest()
56 timezone.status = chromeos::TimeZoneResponseData::OK; in SimpleRequest()
61 timezone.ToStringForDebug()); in SimpleRequest()
[all …]
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dtimezone.h6 * File TIMEZONE.H
34 * \brief C++ API: TimeZone object
49 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
53 * Typically, you get a <code>TimeZone</code> using <code>createDefault</code>
54 * which creates a <code>TimeZone</code> based on the time zone where the program
56 * creates a <code>TimeZone</code> object based on Japanese Standard Time.
59 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> along
61 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>TimeZone</code> object
65 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles");
70 * supported ID to get a <code>TimeZone</code>.
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dtimezone.h6 * File TIMEZONE.H
34 * \brief C++ API: TimeZone object
50 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
54 * Typically, you get a <code>TimeZone</code> using <code>createDefault</code>
55 * which creates a <code>TimeZone</code> based on the time zone where the program
57 * creates a <code>TimeZone</code> object based on Japanese Standard Time.
60 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> along
62 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>TimeZone</code> object
66 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles");
72 * supported ID to get a <code>TimeZone</code>.
[all …]
/external/chromium_org/chrome/browser/chromeos/system/
Dtimezone_util.cc21 #include "third_party/icu/source/i18n/unicode/timezone.h"
35 // Returns an exemplary city in the given timezone.
36 base::string16 GetExemplarCity(const icu::TimeZone& zone) { in GetExemplarCity()
72 // Take the last component of a timezone id (e.g. 'Baz' in 'Foo/Bar/Baz'). in GetExemplarCity()
75 // any timezone for which that's the case. in GetExemplarCity()
84 // Gets the given timezone's name for visualization.
85 base::string16 GetTimezoneName(const icu::TimeZone& timezone) { in GetTimezoneName() argument
92 timezone.getOffset(now, false, raw_offset, dst_offset, status); in GetTimezoneName()
114 timezone.getDisplayName(dst_offset != 0, icu::TimeZone::LONG, name); in GetTimezoneName()
119 GetExemplarCity(timezone))); in GetTimezoneName()
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPDateTimeImpl.java16 import java.util.TimeZone;
44 private TimeZone timeZone = TimeZone.getTimeZone("UTC"); field in XMPDateTimeImpl
68 // extract the date and timezone from the calendar provided in XMPDateTimeImpl()
70 TimeZone zone = calendar.getTimeZone(); in XMPDateTimeImpl()
87 this.timeZone = intCalendar.getTimeZone(); in XMPDateTimeImpl()
93 * a <code>Date</code> and a <code>TimeZone</code>.
96 * @param timeZone a TimeZone how to interpret the date
98 public XMPDateTimeImpl(Date date, TimeZone timeZone) in XMPDateTimeImpl() argument
100 GregorianCalendar calendar = new GregorianCalendar(timeZone); in XMPDateTimeImpl()
109 this.timeZone = timeZone; in XMPDateTimeImpl()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtztest.cpp11 #include "unicode/timezone.h"
96 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
112 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
113 logln((UnicodeString)"TimeZone::createDefault() => " + saveDefault->getID(id)); in TestGenericAPI()
115 TimeZone::adoptDefault(zone); in TestGenericAPI()
116 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
120 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
141 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
230 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
235 if (failure(ec, "TimeZone::inDaylightTime")) return; in findTransition()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dtztest.cpp11 #include "unicode/timezone.h"
84 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
100 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
101 logln((UnicodeString)"TimeZone::createDefault() => " + saveDefault->getID(id)); in TestGenericAPI()
102 TimeZone* pstZone = TimeZone::createTimeZone("America/Los_Angeles"); in TestGenericAPI()
128 TimeZone::adoptDefault(zone); in TestGenericAPI()
129 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
133 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
139 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
228 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
[all …]
/external/icu/icu4c/source/samples/datefmt/answers/
Dmain_3.cpp15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
25 printf("Error: TimeZone::createTimeZone("); in createZone()
38 TimeZone *zone; in main()
51 static char* TIMEZONE[] = { in main() local
57 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]); in main()
78 cal->adoptTimeZone(createZone(TIMEZONE[j])); in main()
86 printf("Date (%s, %s): ", LANGUAGE[i], TIMEZONE[j]); in main()
Dmain_1.cpp15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
25 printf("Error: TimeZone::createTimeZone("); in createZone()
47 static char* TIMEZONE[] = { in main() local
53 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]); in main()
Dmain_2.cpp15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
25 printf("Error: TimeZone::createTimeZone("); in createZone()
38 TimeZone *zone; in main()
51 static char* TIMEZONE[] = { in main() local
57 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]); in main()
Dmain_0.cpp16 * If the ID supplied to TimeZone is not a valid system ID,
17 * TimeZone::createTimeZone() will return a GMT zone object. In order
21 TimeZone* createZone(const UnicodeString& id) { in createZone()
23 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
26 printf("Error: TimeZone::createTimeZone("); in createZone()
48 static char* TIMEZONE[] = { in main() local
54 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]); in main()
/external/icu/icu4c/source/samples/datefmt/
Dmain.cpp15 * If the ID supplied to TimeZone is not a valid system ID,
16 * TimeZone::createTimeZone() will return a GMT zone object. In order
20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
25 printf("Error: TimeZone::createTimeZone("); in createZone()
38 TimeZone *zone; in main()
51 static char* TIMEZONE[] = { in main() local
57 static const int32_t N_TIMEZONE = sizeof(TIMEZONE)/sizeof(TIMEZONE[0]); in main()
78 cal->adoptTimeZone(createZone(TIMEZONE[j])); in main()
86 printf("Date (%s, %s): ", LANGUAGE[i], TIMEZONE[j]); in main()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java30 public void __constructor__(String timezone) { in __constructor__() argument
31 if (timezone == null) { in __constructor__()
32 throw new NullPointerException("timezone is null!"); in __constructor__()
34 time.timezone = timezone; in __constructor__()
46 time.timezone = other.timezone; in set()
142 public void clear(String timezone) { in clear() argument
143 if (timezone == null) { in clear()
144 throw new NullPointerException("timezone is null!"); in clear()
146 time.timezone = timezone; in clear()
162 return TimeZone.getDefault().getID(); in getCurrentTimezone()
[all …]
/external/icu/icu4c/source/i18n/
Dtimezone.cpp7 * File TIMEZONE.CPP
113 static icu::TimeZone* DEFAULT_ZONE = NULL;
116 static icu::TimeZone* _GMT = NULL;
117 static icu::TimeZone* _UNKNOWN_ZONE = NULL;
216 * @param top Top timezone resource
250 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
311 const TimeZone& U_EXPORT2
312 TimeZone::getUnknown() in getUnknown()
318 const TimeZone* U_EXPORT2
319 TimeZone::getGMT(void) in getGMT()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Dtimezone.cpp7 * File TIMEZONE.CPP
118 static U_NAMESPACE_QUALIFIER TimeZone* DEFAULT_ZONE = NULL;
119 static U_NAMESPACE_QUALIFIER TimeZone* _GMT = NULL; // cf. TimeZone::GMT
237 * @param top Top timezone resource
271 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
320 const TimeZone* U_EXPORT2
321 TimeZone::getGMT(void) in getGMT()
343 // class TimeZone
346 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
348 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
[all …]
/external/iptables/extensions/
Dlibxt_time.man38 Use the kernel timezone instead of UTC to determine whether a packet meets the
43 time source has no timezone information, such as the x86 CMOS RTC, UTC will be
45 correct system time and timezone to the kernel once it has the information.
47 Local time is a feature on top of the (timezone independent) system time. Each
49 variable. The kernel also has its own timezone offset variable. The TZ
54 kernel's timezone offset variable is used when it has to convert between
58 The caveat with the kernel timezone is that Linux distributions may ignore to
59 set the kernel timezone, and instead only set the system time. Even if a
60 particular distribution does set the timezone at boot, it is usually does not
61 keep the kernel timezone offset - which is what changes on DST - up to date.
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/
Dset_time.js8 * include a timezone dropdown if timezoneId is provided.
11 * update them as the system time or timezone changes, and notifies Chrome
12 * when the user changes the time or timezone.
30 // The build time doesn't include a timezone, so subtract 1 day to get a
51 // Show the timezone select if we have a timezone ID.
55 $('timezone-select').addEventListener(
57 $('timezone').hidden = false;
70 * Sets the current timezone.
71 * @param {string} timezoneId The timezone ID to select.
75 $('timezone-select').value = timezoneId;
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimeTest.java21 import java.util.TimeZone;
97 private void testToString(String timeZone, long[] theTimes, in testToString() argument
99 // Set the timezone in testToString()
100 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
116 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
140 // Ensure that the timezone is set to GMT in testSetTime()
141 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTime()
303 // Reset defualt timezone
304 static TimeZone defaultTimeZone = TimeZone.getDefault();
307 TimeZone.setDefault(defaultTimeZone); in tearDown()
DTimestampTest.java22 import java.util.TimeZone;
199 // First set the timezone to GMT in testSetTimelong()
200 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTimelong()
217 // First set the timezone to GMT in testGetTime()
218 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetTime()
256 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetDate()
269 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetHours()
282 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetMinutes()
295 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetSeconds()
309 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
[all …]
/external/chromium_org/third_party/icu/source/tools/tzcode/
Dicuzdump.cpp16 * This tool write out timezone transitions for ICU timezone. This tool
17 * is used as a part of tzdata update process to check if ICU timezone
29 #include "unicode/timezone.h"
115 void setTimeZone(TimeZone* tz) { in setTimeZone()
116 timezone = tz; in setTimeZone()
136 timezone->getOffset(t, FALSE, rawOffset, dstOffset, status); in dump()
141 timezone->getOffset(newt, FALSE, newRawOffset, newDstOffset, status); in dump()
157 timezone->getOffset(medt, FALSE, medRawOffset, medDstOffset, status); in dump()
191 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEnglish(), status); in getCutOverTimes()
202 TimeZone* timezone; member in ICUZDump
[all …]
/external/icu/icu4c/source/tools/tzcode/
Dicuzdump.cpp16 * This tool write out timezone transitions for ICU timezone. This tool
17 * is used as a part of tzdata update process to check if ICU timezone
29 #include "unicode/timezone.h"
115 void setTimeZone(TimeZone* tz) { in setTimeZone()
116 timezone = tz; in setTimeZone()
136 timezone->getOffset(t, FALSE, rawOffset, dstOffset, status); in dump()
141 timezone->getOffset(newt, FALSE, newRawOffset, newDstOffset, status); in dump()
157 timezone->getOffset(medt, FALSE, medRawOffset, medDstOffset, status); in dump()
191 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEnglish(), status); in getCutOverTimes()
202 TimeZone* timezone; member in ICUZDump
[all …]

12345678910>>...29