예제 #1
0
 //adds a time zone to the list
 public static void AddTimeZone(GameTimeZone tz)
 {
     timeZones.Add(tz);
 }
예제 #2
0
        //gets the local time for a time in a time zone
        public static DateTime ConvertDateTimeToLoalTime(DateTime time, GameTimeZone timeZone)
        {
            TimeSpan delta = GameObject.GetInstance().TimeZone.UTCOffset.Subtract(timeZone.UTCOffset);

            return(time.Subtract(delta));
        }
예제 #3
0
        public static TimeSpan ConvertTimeSpanToLocalTime(TimeSpan time, GameTimeZone timeZone)
        {
            TimeSpan delta = GameObject.GetInstance().TimeZone.UTCOffset.Subtract(timeZone.UTCOffset);

            return(time.Subtract(delta));
        }
예제 #4
0
 //adds a time zone to the list
 public static void AddTimeZone(GameTimeZone tz)
 {
     timeZones.Add(tz);
 }