convert the System.currentTimeMillis

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear Gent

can help me convert the System.currentTimeMillis to VB.Net code , i
tried system.DateTime.Now.Ticks what is not even close.
 
Hello, Ahmed!

AA> can help me convert the System.currentTimeMillis to VB.Net code
AA> , i tried system.DateTime.Now.Ticks what is not even close.

Sorry, code sample is in C#. IMO it will be easy to convert to VB code

TimeSpan t = (DateTime.UtcNow - new DateTime(1970, 1, 1));
long timestamp = Convert.ToInt64(t.TotalMilliseconds);
return timestamp;

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Back
Top