示例#1
0
 public double getTimeZoneOffsetHours()
 {
     if (timezone == null)
     {
         timezone = GPTimeZoneList.sharedTimeZones().GetTimezoneByName(timezoneName);
     }
     if (timezone != null)
     {
         return(Convert.ToDouble(timezone.OffsetSeconds) / 3600.0);
     }
     return(0.0);
 }
示例#2
0
 public void setTimeZoneName(string value)
 {
     timezoneName = value;
     timezone     = GPTimeZoneList.sharedTimeZones().GetTimezoneByName(timezoneName);
 }