L
linuxnooby
Hi
I am trying to display a unix timestamp as a time of day. I can do this
but I lose 10 hours. Is this something do with locale or is there an
error in my code?? The timestamp is for 11.20 am, but the message box
displays 1.20am !!
Dim timestamp As Integer = 1159492831
Dim dt As Date = New System.DateTime(1970, 1, 1).AddSeconds(timestamp)
MessageBox.Show(Format(dt, "hh:mm tt"))
any help appreciated
Dave
I am trying to display a unix timestamp as a time of day. I can do this
but I lose 10 hours. Is this something do with locale or is there an
error in my code?? The timestamp is for 11.20 am, but the message box
displays 1.20am !!
Dim timestamp As Integer = 1159492831
Dim dt As Date = New System.DateTime(1970, 1, 1).AddSeconds(timestamp)
MessageBox.Show(Format(dt, "hh:mm tt"))
any help appreciated
Dave