Example #1
0
        public static string GetStrHhMm(this UTimer t)
        {
            UTimer.TimeStruct ts = t.TickToTimeStruct(t.Tick);
            int h = ts.Hour;
            int m = ts.Minute;

            s_strBuff.Length = 0;
            s_strBuff.Append((char)('0' + (h / 10)));
            s_strBuff.Append((char)('0' + (h % 10)));
            s_strBuff.Append(':');
            s_strBuff.Append((char)('0' + (m / 10)));
            s_strBuff.Append((char)('0' + (m % 10)));
            return(s_strBuff.ToString());
        }