저장소/VC++
strftime format 좀 기억하자!
MindGear
2014. 8. 8. 18:33
출처 : MSDN
http://msdn.microsoft.com/en-us/library/fe06s4ak.aspx
MFC CTime의 Format 함수에서도 strftime의 포맷과 동일하게 사용한다. 참고하자.
The formatting codes for strftime are listed below:
As in the printf function, the # flag may prefix any formatting code. In that case, the meaning of the format code is changed as follows.
Format code | Meaning |
---|---|
%#a, %#A, %#b, %#B, %#p, %#X, %#z, %#Z, %#% | # flag is ignored. |
%#c | Long date and time representation, appropriate for current locale. For example: "Tuesday, March 14, 1995, 12:41:29". |
%#x | Long date representation, appropriate to current locale. For example: "Tuesday, March 14, 1995". |
%#d, %#H, %#I, %#j, %#m, %#M, %#S, %#U, %#w, %#W, %#y, %#Y | Remove leading zeros (if any). |