goog.locale.timeZoneDetection
Namespace.detectTimeZone(opt_country, opt_date)
Detects browser's time zone setting. If user's country is known, a better time zone choice could be guessed.
opt_country
{string
=}
opt_date
{Date
=}
string
}
.getFingerprint(date)
Calculates time zone fingerprint by poking time zone offsets for 13 preselected time points. See {@link goog.locale.timeZoneDetection.TZ_POKE_POINTS_}
date
{Date
}
number
}
.getTimeZoneList(opt_country, opt_date)
Returns an array of time zones that are consistent with user's platform setting. If user's country is given, only the time zone for that country is returned.
opt_country
{string
=}
opt_date
{Date
=}
Array
.<string
>}