I want to format a date/time to a string using boost.
Starting with the current date/time:
ptime now = second_clock::universal_time();
and ending up with a wstring containing the date/time in this format:
%Y%m%d_%H%M%S
Can you show me the code to achieve this? Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…