1

我有一个显示 UnixTime 的图表

我相信它的代码如下: TimePoint = CType(oRow.Item("TimeStamp"), Long

我可以重新考虑它以显示实际日期时间吗?截图:http ://awesomescreenshot.com/0cd1hy4he8

4

1 回答 1

0
Function ConvertTimestamp(ByVal timestamp as Double) As DateTime
      Return New DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(timestamp)
End Function

TimePoint = ConvertTimeStamp( CType(oRow.Item("TimeStamp"), Double)).ToLocalTime()
于 2013-07-12T03:43:14.153 回答