C++ examples for Data Type:time
FORMAT SPECIFIER | DESCRIPTION |
---|---|
%a | Day of the week, abbreviated. |
%A | Day of the week, spelled out. |
%b | Month name, abbreviated. |
%B | Month name, spelled out. |
%c | Complete month and day. |
%D | Day of the month, 01 to 31. |
%H | Hour, 00 to 23 (based on 24-hour clock). |
%I | Hour, 00 to 11 (based on 12-hour clock). |
%J | Day of the year, 000 to 366. |
%m | Month, 01 to 12. |
%M | Minute, 00 to 59 |
%p | a.m./p.m. designation. |
%S | Seconds, 00 to 61 (up to two leap seconds) |
%U | Week number, 01 to 53. Week 1 starts with first Sunday. |
%w | Weekday, 0 to 6, in which Sunday is 0. |
%W | Week number, 01 to 53. Week 1 starts with first Monday. |
%x | Date. |
%X | Time. |
%y | Year, 00 to 09, within the century. |
%Y | Year. |
%Z | Time zone; blank if time zone is not known. |
%% | Literal %. |