microsecondDateTime function in C#
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MicrosecondDateTime
.gitignore
LICENSE
MicrosecondDateTime.sln
README.md

README.md

microsecondDateTime

Simple function to use microsecond from DateTime Structure in C#:

double microsecondDateTime(DateTime date)
{
	DateTime withoutMicrosecondDate = new DateTime(date.Year, date.Month, date.Day, date.Hour, date.Minute, date.Second, date.Millisecond);
	return (double)(date.Ticks - withoutMicrosecondDate.Ticks) / (TimeSpan.TicksPerMillisecond / 1000);
}

In the files are some example code.