Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PrintTime()

void System.Xml.Schema.XsdDateTime.PrintTime ( StringBuilder sb)
inlineprivate

Definition at line 730 of file XsdDateTime.cs.

731 {
732 char[] array = new char[s_lzHH_mm_ss];
734 array[s_lzHH] = ':';
736 array[s_lzHH_mm] = ':';
738 sb.Append(array);
739 int num = Fraction;
740 if (num != 0)
741 {
742 int num2 = 7;
743 while (num % 10 == 0)
744 {
745 num2--;
746 num /= 10;
747 }
748 array = new char[num2 + 1];
749 array[0] = '.';
750 IntToCharArray(array, 1, num, num2);
751 sb.Append(array);
752 }
753 }
StringBuilder Append(char value, int repeatCount)
void ShortToCharArray(char[] text, int start, int value)
static readonly int s_lzHH_mm_
static readonly int s_lzHH_mm
void IntToCharArray(char[] text, int start, int value, int digits)
static readonly int s_lzHH
static readonly int s_lzHH_mm_ss
static readonly int s_lzHH_

References System.Text.StringBuilder.Append(), System.array, System.Xml.Dictionary, System.Xml.Schema.XsdDateTime.Fraction, System.Xml.Schema.XsdDateTime.Hour, System.Xml.Schema.XsdDateTime.IntToCharArray(), System.Xml.Schema.XsdDateTime.Minute, System.Xml.Schema.XsdDateTime.s_lzHH, System.Xml.Schema.XsdDateTime.s_lzHH_, System.Xml.Schema.XsdDateTime.s_lzHH_mm, System.Xml.Schema.XsdDateTime.s_lzHH_mm_, System.Xml.Schema.XsdDateTime.s_lzHH_mm_ss, System.Xml.Schema.XsdDateTime.Second, and System.Xml.Schema.XsdDateTime.ShortToCharArray().

Referenced by System.Xml.Schema.XsdDateTime.ToString().