fnTimeToStr function

dynamic fnTimeToStr(
  1. dynamic value
)

Expression function TimeToStr(t): Converts a time to a string. The Dart result differs from the Windows engine; see the manual, Appendix C.3.

Implementation

dynamic fnTimeToStr(dynamic value) {
  final dt = _toDateTime(value);
  if (dt == null) return '';
  return '${dt.hour.toString().padLeft(2, '0')}:${dt.minute.toString().padLeft(2, '0')}:${dt.second.toString().padLeft(2, '0')}';
}