I was wondering if anyone knows the proper syntax for padding with 0s using Boost.Format. I am trying to get HH:MM:SS, and I have the following:
This will give H:M:S, though.Code:typedef boost::basic_format<TCHAR> tformat; tformat(_T("%1%:%2%:%3%")) % Data.EtaHours % Data.EtaMinutes % Data.EtaSeconds));
Any ideas? The boost documentation can be so bad at times.