using System; using System.Collections.Generic; namespace AipGateway.FileJob.Scheduler { internal static class Helper { public static (int h, int m) SplitMinutes(long minutes) { return ((int)Math.Floor(minutes / 60.0), (int)(minutes % 60)); } public static int TryInt(string value, int defValue) { try { int number = int.Parse(value); return number; } catch (FormatException) { Console.WriteLine("유효한 숫자 형식이 아닙니다."); return defValue; } catch (Exception ex) { Console.WriteLine($"오류 발생: {ex.Message}"); return defValue; } } } }