fromLatinTime static method
Implementation
static DateTime fromLatinTime(String date) {
return DateFormat("HH:mm").parse(date.replaceAllMapped(
RegExp(r'[០១២៣៤៥៦៧៨៩]'),
(match) => (int.parse(match
.group(0)!
.replaceAll('០', '0')
.replaceAll('១', '1')
.replaceAll('២', '2')
.replaceAll('៣', '3')
.replaceAll('៤', '4')
.replaceAll('៥', '5')
.replaceAll('៦', '6')
.replaceAll('៧', '7')
.replaceAll('៨', '8')
.replaceAll('៩', '9')))
.toString(),
));
}