-
-
Save binh12A3/9b55f79dab96342da40fa8d606adf39d 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
using System; | |
namespace BinhHelper | |
{ | |
public class LogHelper | |
{ | |
public void myLog(string str) | |
{ | |
string timestamp = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss"); | |
Console.WriteLine("[" + timestamp + "]" + " " + str); | |
} | |
} | |
public class DateTimeHelper | |
{ | |
public string myDateTimeString(string str) | |
{ | |
return DateTime.Now.ToString(str); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment