Exemplo n.º 1
0
        // tries to parse a string with the formats supported by SimpleDateFormat
        /// <exception cref="Sharpen.ParseException"></exception>
        private static DateTime Parse_simple(string dateStr, GitDateParser.ParseableSimpleDateFormat
                                             f)
        {
            SimpleDateFormat dateFormat = GetDateFormat(f);

            dateFormat.SetLenient(false);
            return(dateFormat.Parse(dateStr));
        }