Last active
December 12, 2015 08:49
-
-
Save yetanotherchris/4746643 to your computer and use it in GitHub Desktop.
Unique identifiers: time hashcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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