using System;

namespace ZocMonLib
{
    public class Constant
    {
        public static readonly DateTime MinDbDateTime = new DateTime(1753, 1, 1);
         
        public const long TicksInMillisecond = 10000;

        public const long MinResolutionForDbWrites = 60 * 1000;

        public const long MsPerDay = 24 * 60 * 60 * 1000;

        public const int MaxConfigNameLength = 116;

        public const int MaxDataPointsPerLine = 2000; // roughly 3 months of hourly data
    }
}
using System;
using System.Data.SqlTypes;

namespace ZocMonLib
{
    public class Constant
    {
        public static readonly DateTime MinDbDateTime = SqlDateTime.MinValue.Value;

        public const long TicksInMillisecond = TimeSpan.TicksPerMillisecond;

        public const long MinResolutionForDbWrites = 60 * 1000;

        public const long MsPerDay = TimeSpan.TicksPerDay / TimeSpan.TicksPerMillisecond;

        public const int MaxConfigNameLength = 116;

        public const int MaxDataPointsPerLine = 2000; // roughly 3 months of hourly data
    }
}
Change how constants are defined
Change how constants are defined
