getTimeJi static method
Implementation
static List<String> getTimeJi(String dayGanZhi, String timeGanZhi) {
List<String> l = <String>[];
String day = hex(getJiaZiIndex(dayGanZhi));
String time = hex(getJiaZiIndex(timeGanZhi));
int index = TIME_YI_JI.indexOf(day + time + '=');
if (index > -1) {
String left = TIME_YI_JI.substring(index + 5);
if (left.contains('=')) {
left = left.substring(0, left.indexOf('=') - 4);
}
String js = left.substring(left.indexOf(',') + 1);
for (int i = 0, j = js.length; i < j; i += 2) {
l.add(YI_JI[int.parse(js.substring(i, i + 2), radix: 16)]);
}
}
if (l.isEmpty) {
l.add('无');
}
return l;
}