C Format Date to String

Descripción

Format date using strftime


File Template: ❌


Prefix

date:format


Scopes

c


Snippet de código

#include <time.h>

char ${1:buffer}[${2:64}];
strftime(${1}, sizeof(${1}), "${3|%Y-%m-%d,%d/%m/%Y,%m/%d/%Y,%H:%M:%S,%Y-%m-%d %H:%M:%S|}", ${4:local});