Remove ltime()

Use SYSTEMTIME, GetLocalTime() in place of struct tm, ltime().
Use _snprintf() to format the string in place of strftime().