Пример #1
0
        private static DateTime?ParseDateTime(Directory gpsDirectory, DateTimeStyles dateTimeStyles)
        {
            var timeStamp = gpsDirectory.GetRationalArray(GpsDirectory.TagTimeStamp);
            var dateStamp = gpsDirectory.GetString(GpsDirectory.TagDateStamp);

            if (timeStamp == null || dateStamp == null)
            {
                return(null);
            }

            var hour   = ParseRational(timeStamp[0], Convert.ToInt32);
            var minute = ParseRational(timeStamp[1], Convert.ToInt32);
            var second = ParseRational(timeStamp[2], Convert.ToInt32);