gmtOffset property
The numeric offset in seconds from GMT
// For `Asia/Kabul`, this is the same as (16200 / 60) / 60 = 4.5
double offsetHours = (timezone.gmtOffset / 60) / 60;
Implementation
final int gmtOffset;
The numeric offset in seconds from GMT
// For `Asia/Kabul`, this is the same as (16200 / 60) / 60 = 4.5
double offsetHours = (timezone.gmtOffset / 60) / 60;
final int gmtOffset;