From f22aaaf0f5a8ca6d9633d10f66d70e19a4a5e0e1 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 17 十月 2025 17:43:24 +0800 Subject: [PATCH] 0312 补充二级标签特效; 修复英雄招募切换账号跳过勾选没有变化问题 --- Main/Utility/TimeUtility.cs | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/Main/Utility/TimeUtility.cs b/Main/Utility/TimeUtility.cs index 921fbb4..d1aa684 100644 --- a/Main/Utility/TimeUtility.cs +++ b/Main/Utility/TimeUtility.cs @@ -252,6 +252,30 @@ return StringUtility.Contact(hours.ToString("D2"), ":", mins.ToString("D2"), ":", seconds.ToString("D2")); } + //璇︾粏鏄剧ず + //xx灏忔椂xx鍒哫X绉� + //xx鍒哫X绉� + //xx绉� + public static string SecondsToHMSEx(int _seconds) + { + int hours = _seconds % 86400 / 3600; + int mins = _seconds % 3600 / 60; + int seconds = _seconds % 60; + if (hours > 0) + { + return StringUtility.Contact(hours, Language.Get("L1072"), mins, Language.Get("L1073"), seconds, Language.Get("L1075")); + } + else if (mins > 0) + { + return StringUtility.Contact(mins, Language.Get("L1073"), seconds, Language.Get("L1075")); + } + else + { + return StringUtility.Contact(seconds, Language.Get("L1075")); + } + } + + //渚嬪瓙锛涘垎锛氱 //xx:xx public static string SecondsToMS(int _seconds) @@ -387,6 +411,8 @@ } return StringUtility.Contact(hours.ToString("D2"), ":", mins.ToString("D2"), ":", seconds.ToString("D2")); } + + //渚嬪瓙 //x澶� //x鏃� -- Gitblit v1.8.0