Fan.Sys.TimeZone.compare C# (CSharp) Méthode

compare() static private méthode

Compare the specified time to the dst start/end time. Return -1 if x < specified time and +1 if x > specified time.
static private compare ( Rule rule, DstTime x, int year, int mon, int day, int time ) : int
rule Rule
x DstTime
year int
mon int
day int
time int
Résultat int
        static int compare(Rule rule, DstTime x, int year, int mon, int day, int time)
        {
            int c = compareMonth(x, mon);
              if (c != 0) return c;

              c = compareOnDay(rule, x, year, mon, day);
              if (c != 0) return c;

              return compareAtTime(rule, x, time);
        }