假设我将一些秒转换为TimeSpan对象,如下所示:
Dim sec = 1254234568 Dim t As TimeSpan = TimeSpan.FromSeconds(sec)
如何将TimeSpan对象格式化为如下格式:
>105hr 56mn 47sec
是否有内置函数或我是否需要编写自定义函数?
c# vb.net formatting timespan
c# ×1
formatting ×1
timespan ×1
vb.net ×1