我正在尝试在Excel宏中显示毫秒。我有一列整数,它们是以毫秒为单位的时间戳(例如,28095200是7:48:15.200 am),我想在它旁边创建一个新列,用于保存运行平均值并以hh:mm:ss.000格式显示时间。
Dim Cel As Range
Set Cel = Range("B1")
temp = Application.Average(Range("A1:A2")) / 1000
ms = Round(temp - Int(temp), 2) * 1000
Cel.Value = Strings.Format((temp / 60 /
在我的数据库中,某人的工作时间是以一定的分钟为单位存储的。在我的报告中,我以HH:MM.的格式列出了这些分钟。我通过使用以下函数来执行此操作:
Function (numberVar numberToBeConverted)
local TimeVar result;
local StringVar hh := ToText((Truncate( numberToBeConverted ) / 60), "0");
local StringVar mm := ToText((Truncate( Abs(numberToBeConverted) ) mod 60), "