Exemple #1
0
        public static string Safe62ToDec(string sluc)
        {
            var time_text = sluc.Substring(0, 6);
            var spin_text = sluc.Substring(6);
            var result    =
                RCC.Safe62ToDec(time_text).PadLeft(10, '0') +
                RCC.Safe62ToDec(spin_text);

            return(result);
        }
Exemple #2
0
        public static string DecToSafe62(string sluc)
        {
            var time_text = sluc.Substring(0, 10);
            var spin_text = sluc.Substring(10);
            var result    =
                RCC.DecToSafe62(time_text).PadLeft(6, '0') +
                RCC.DecToSafe62(spin_text);

            return(result);
        }
Exemple #3
0
        private string Combine(DateTime time, int spin)
        {
            var    time_text = stc_.ToText(time);
            var    spin_text = spin.ToString();
            string result    =
                RCC.DecToSafe62(time_text).PadLeft(6, '0') +
                RCC.DecToSafe62(spin_text);

            return(result);
        }