TimeZonesHandlerDetermineTimeZoneByCountry Method

If we know the nation of an object but not its timezone, we can determine the timezone by the nation. (If not owned by a company that has its timezone set)

Definition

Namespace: MobileTrack.Common.Services
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static TimeZoneInfo DetermineTimeZoneByCountry(
	this Iso3166Country country
)

Parameters

country  Iso3166Country
Country to look up

Return Value

TimeZoneInfo
Found timezone. For nations with multiple timezones it will return the most populous one.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Iso3166Country. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

NotImplementedExceptionIf the nation isn't found in the lookup.

See Also