Share via


TimeZone Class

Definition

Defines the data and time of one or more geographic locations.

public class TimeZone : Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.SearchResultsAnswer
type TimeZone = class
    inherit SearchResultsAnswer
Public Class TimeZone
Inherits SearchResultsAnswer
Inheritance

Constructors

TimeZone()

Initializes a new instance of the TimeZone class.

TimeZone(TimeZoneTimeZoneInformation, String, String, IList<Query>, QueryContext, Nullable<Int64>, Nullable<Boolean>, IList<TimeZoneTimeZoneInformation>)

Initializes a new instance of the TimeZone class.

Properties

FollowUpQueries (Inherited from Answer)
Id

Gets a String identifier.

(Inherited from Identifiable)
IsFamilyFriendly (Inherited from SearchResultsAnswer)
OtherCityTimes

Gets a list of dates and times of nearby time zones.

PrimaryCityTime

Gets or sets the data and time, in UTC, of the geographic location specified in the query. If the query specified a specific geographic location (for example, a city), this object contains the name of the geographic location and the current date and time of the location, in UTC. If the query specified a general geographic location, such as a state or country, this object contains the date and time of the primary city or state found in the specified state or country. If the location contains additional time zones, the otherCityTimes field contains the data and time of cities or states located in the other time zones.

QueryContext (Inherited from SearchResultsAnswer)
TotalEstimatedMatches

Gets the estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.

(Inherited from SearchResultsAnswer)
WebSearchUrl

Gets the URL To Bing's search result for this item.

(Inherited from Response)

Methods

Validate()

Validate the object.

Applies to