AwsSnapshotScheduler.Program.GetAfterTheHour C# (CSharp) Method

GetAfterTheHour() public static method

public static GetAfterTheHour ( string p, int def ) : int
p string
def int
return int
        public static int GetAfterTheHour(string[] p, int def = 0)
        {
            int ah = def;

            for (int x = 0; x < p.Length; x++)
            {
                string r = p[x];
                if (r.StartsWith(":"))
                {
                    int z;
                    if (int.TryParse(r.Substring(1), out z))
                    {
                        if (z >= 0 || z < 60)
                            ah = z;
                    }
                    break;
                }
            }

            return ah;
        }