Exemple #1
0
        protected override DateTime ParseDateUtc(string[] handLines)
        {
            string dateString = DateRegex.Match(handLines[handLines.Length - 1]).Value;

            DateTime dateTime = DateTime.Parse(dateString);

            DateTime utcTime = TimeZoneUtil.ConvertDateTimeToUtc(dateTime, TimeZoneType.GMT1);

            return(utcTime);
        }
Exemple #2
0
        protected override DateTime ParseDateUtc(string[] handLines)
        {
            //Date looks like: 04 02 2012 23:59:48
            string dateString = DateLineRegex.Match(handLines[2]).Value;

            //Change string so it becomes 2012-02-04 23:59:48
            dateString = DateRegex.Replace(dateString, "$3-$2-$1 ");

            DateTime dateTime = DateTime.Parse(dateString);

            DateTime utcTime = TimeZoneUtil.ConvertDateTimeToUtc(dateTime, TimeZoneType.GMT);

            return(utcTime);
        }
Exemple #3
0
        protected override DateTime ParseDateUtc(string[] handLines)
        {
            //Date looks like: 04 02 2012 23:59:48
            string dateString = DateLineRegex.Match(handLines[2]).Value;

            //Change string so it becomes 2012-02-04 23:59:48
            dateString = DateRegex.Replace(dateString, "$3-$2-$1 ");

            DateTime dateTime = DateTime.Parse(dateString);

            TimeZoneType timeZone = TimeZoneType.GMT;

            // WSOP and TowerTorneosPoker used local time zone for hand history.
            if (handLines[1].Contains("WSOP.com") || handLines[1].Contains("TowerTorneosPoker"))
            {
                timeZone = TimeZoneType.Current;
            }

            DateTime utcTime = TimeZoneUtil.ConvertDateTimeToUtc(dateTime, timeZone);

            return(utcTime);
        }