Пример #1
0
 public static GPTimeZoneList sharedTimeZones()
 {
     if (tzlist == null)
     {
         tzlist = new GPTimeZoneList();
     }
     return(tzlist);
 }
Пример #2
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);
 }
Пример #3
0
 public void setTimeZoneName(string value)
 {
     timezoneName = value;
     timezone     = GPTimeZoneList.sharedTimeZones().GetTimezoneByName(timezoneName);
 }