Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Last active December 12, 2015 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetanotherchris/4746643 to your computer and use it in GitHub Desktop.
Save yetanotherchris/4746643 to your computer and use it in GitHub Desktop.
Unique identifiers: time hashcode
public static string TimeToHexString()
{
long ms = DateTime.Now.Second;
long ms2 = DateTime.Now.Millisecond;
return string.Format("{0:X}{1:X}", ms, ms2).ToLower();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment