C/C++
strftime()

#include <time.h>
size_t strftime(char *str, size_t maxsize,
		const char *fmt, const struct tm *time);


( )

strftime() ( ) , str, , fmt , time. str maxsize .

99 str, fmt time restrict.

strftime() sprintf() , , (%), . str. , , str . . . , .

strftime() , , str, .

%
%
%b
%
%
%
%d (1-31)
%D //( 99)
% (1-31) 2- ( 99)
%F --( 99)
%g ( 99)
%G ( 99)
%h ( 99)
%H (0-23)
%I (1-12)
%j (1-366)
%m (1-12)
%M (0-59)
%n ( 99)
%p A.M. P.M.
%r 12- ( 99)
%R :( 99)
%S (0-60)
%t ( 99)
%T ::( 99)
%u ; (1-7)( 99)
%U ; (0-53)
%V ( 99)
%w (0-6, 0- )
%W ; (0-53)
%x
%X
%y (0-99)
%Y ,
%z UTC( 99)
%Z
%%

%g, %G %v. , "4 ".






Нет комментариев.



Оставить комментарий:
Ваше Имя:
Email:
Антибот: *  
Ваш комментарий: