我有一个显示UnixTime的图表
我相信它的代码如下:
TimePoint = CType(oRow.Item("TimeStamp"), Long
我可以重新考虑显示实际日期时间吗? 屏幕截图:http://awesomescreenshot.com/0cd1hy4he8
答案 0 :(得分: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()