idByStyle function
Implementation
int idByStyle(ShowDateTimeStyle style) {
switch (style) {
case ShowDateTimeStyle.datetime:
return 0;
case ShowDateTimeStyle.time:
return 1;
case ShowDateTimeStyle.timestamp:
return 2;
case ShowDateTimeStyle.none:
return 3;
}
}