如何在 android & iOS 中使用 xamarin 获取时区

How to get time zone using xamarin in android & iOS

我想获取手机phone时间的时区

我怎样才能做到?

我正在使用 Xamarin 在 android / iOS

中实现 APP

我想要的是得到例如“GMT+8”。不是国名。

试试这个:

TimeSpan ts = new DateTimeOffset(DateTime.Now).Offset;