Click here to Skip to main content
12,249,234 members (42,686 online)
Click here to Skip to main content

Stats

0 views
Posted

How to change the format of log

, 20 Sep 2012 CPOL
time_t rawtime;struct tm * timeinfo;time ( &rawtime );timeinfo = localtime ( &rawtime );char datebuff[1024];sprintf( datebuff, "%02d/%02d/%02d::%02d:%02d:%02d", timeinfo->tm_mon + 1, timeinfo->tm_mday, ( timeinfo->tm_year + 1900 ) % 100, timeinfo->tm_hour,timeinfo->tm_min,...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 20-Sep-12 5:12 Available André Kraak
Added code tags
1 No 20-Sep-12 5:08 Available Santhosh G_

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Santhosh G_
India India
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 20 Sep 2012
Article Copyright 2012 by Santhosh G_
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid