|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Buffers.Text
{
internal static partial class Utf8Constants
{
public const byte Colon = (byte)':';
public const byte Comma = (byte)',';
public const byte Minus = (byte)'-';
public const byte Period = (byte)'.';
public const byte Plus = (byte)'+';
public const byte Slash = (byte)'/';
public const byte Space = (byte)' ';
public const byte Hyphen = (byte)'-';
public const int DateTimeMaxUtcOffsetHours = 14; // The UTC offset portion of a TimeSpan or DateTime can be no more than 14 hours and no less than -14 hours.
public const int DateTimeNumFractionDigits = 7; // TimeSpan and DateTime formats allow exactly up to many digits for specifying the fraction after the seconds.
public const int MaxDateTimeFraction = 9999999; // ... and hence, the largest fraction expressible is this.
}
}
|