TimeUtils.TimeZoneDatabaseVersion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a String indicating the version of the time zone database currently in use.
public static string? TimeZoneDatabaseVersion { [Android.Runtime.Register("getTimeZoneDatabaseVersion", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getTimeZoneDatabaseVersion", "()Ljava/lang/String;", "")>]
static member TimeZoneDatabaseVersion : string
Property Value
- Attributes
Remarks
Returns a String indicating the version of the time zone database currently in use. The format of the string is dependent on the underlying time zone database implementation, but will typically contain the year in which the database was updated plus a letter from a to z indicating changes made within that year.
Time zone database updates should be expected to occur periodically due to political and legal changes that cannot be anticipated in advance. Therefore, when computing the time for a future event, applications should be aware that the results may differ following a time zone database update. This method allows applications to detect that a database change has occurred, and to recalculate any cached times accordingly.
The time zone database may be assumed to change only when the device runtime is restarted. Therefore, it is not necessary to re-query the database version during the lifetime of an activity.
Java documentation for android.util.TimeUtils.getTimeZoneDatabaseVersion()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.