I have to parse time given in hours, minutes, seconds and fraction of seconds. Such as
Код: Выделить всё
"15:42:58.1"
"15:42:58.21"
"15:42:58.417"
Код: Выделить всё
DateTime.ParseExact("15:42:58.1", "HH:mm:ss.0.f", CultureInfo.InvariantCulture);
Question:
- Is there a generic possibility for the number of decimals of seconds?
Источник: https://stackoverflow.com/questions/581 ... of-seconds
Мобильная версия