Skip to content

Timezone

The time zone of the phone.

Collected by TimezoneProbe for the DeviceSamplingPackage.TIMEZONE measure.

See List of tz database time zones for an overview of timezones.

Inheritance
Annotations

Constructors

Timezone.fromJson

Timezone.fromJson(
  1. Map<String, dynamic> json
)

Timezone

Timezone(
  1. String timezone
)

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

timezone

String timezone
getter/setter pair

The tz database name of the time zone, e.g. Europe/Copenhagen.

Methods

equivalentTo

bool equivalentTo(
  1. Data other
)
override

Returns true if the timezone of other is the same as this timezone.

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.