Created
February 11, 2019 10:56
-
-
Save chrisnas/29870bf37601659d8508f73ecc0c5187 to your computer and use it in GitHub Desktop.
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
private static string GetUniqueFilename(int pid) | |
{ | |
var now = DateTime.Now; | |
string filename = Path.Combine(Environment.CurrentDirectory, | |
$"{pid.ToString()}_{now.Year}{now.Month}{now.Day}_{now.Hour}{now.Minute}{now.Second}.csv" | |
); | |
return filename; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment