// Token: 0x060016F6 RID: 5878 RVA: 0x0006CAE8 File Offset: 0x0006ACE8 internal static int WriteDefaultIsoDate(char[] chars, int start, DateTime dt) { int num = 19; int value; int value2; int value3; Class_502.GetDateValues(dt, out value, out value2, out value3); Class_502.CopyIntToCharArray(chars, start, value, 4); chars[start + 4] = '-'; Class_502.CopyIntToCharArray(chars, start + 5, value2, 2); chars[start + 7] = '-'; Class_502.CopyIntToCharArray(chars, start + 8, value3, 2); chars[start + 10] = 'T'; Class_502.CopyIntToCharArray(chars, start + 11, dt.Hour, 2); chars[start + 13] = ':'; Class_502.CopyIntToCharArray(chars, start + 14, dt.Minute, 2); chars[start + 16] = ':'; Class_502.CopyIntToCharArray(chars, start + 17, dt.Second, 2); int num2 = (int)(dt.Ticks % 10000000L); if (num2 != 0) { int num3 = 7; while (num2 % 10 == 0) { num3--; num2 /= 10; } chars[start + 19] = '.'; Class_502.CopyIntToCharArray(chars, start + 20, num2, num3); num += num3 + 1; } return(start + num); }
// Token: 0x060016F8 RID: 5880 RVA: 0x0006CBF8 File Offset: 0x0006ADF8 internal static int WriteDateTimeOffset(char[] chars, int start, TimeSpan offset, Class_319 format) { chars[start++] = ((offset.Ticks >= 0L) ? '+' : '-'); int value = Math.Abs(offset.Hours); Class_502.CopyIntToCharArray(chars, start, value, 2); start += 2; if (format == Class_319.IsoDateFormat) { chars[start++] = ':'; } int value2 = Math.Abs(offset.Minutes); Class_502.CopyIntToCharArray(chars, start, value2, 2); start += 2; return(start); }