Formatting a Duration like HH:mm:ss

后端 未结 11 965
孤城傲影
孤城傲影 2020-12-05 22:53

Is there a good way to format a Duration in something like hh:mm:ss, without having to deal with time zones?

I tried this:

DateTime durationDate = Da         


        
11条回答
  •  Happy的楠姐
    2020-12-05 23:44

    To do this in a way that is portable, consider the intl package DateFormat class: https://pub.dartlang.org/documentation/intl/latest/intl/DateFormat-class.html

提交回复
热议问题