private Map FindPlayerHomeWithMinTimezone() { List <Map> maps = Find.Maps; Map map = null; int num = -1; for (int i = 0; i < maps.Count; i++) { if (maps[i].IsPlayerHome) { int num2 = GenDate.TimeZoneAt(Find.WorldGrid.LongLatOf(maps[i].Tile).x); if (map == null || num2 < num) { map = maps[i]; num = num2; } } } return(map); }
private static long LocalTicksOffsetFromLongitude(float longitude) { return((long)GenDate.TimeZoneAt(longitude) * 2500L); }