.Maui Blog

Get unix micro time in VB.NET

Public Shared Function GetUnixMicroTime() As String
    Dim origin As DateTime = New DateTime(1970, 1, 1, 0, 0, 0, 0)
    Dim diff As TimeSpan = Now() - origin
    Return CStr(diff.TotalSeconds)
End Function
Exit mobile version