Descripción
Parse date string to struct tm (POSIX strptime)
File Template: ❌
Prefix
date:parse
Scopes
c
Snippet de código
#include <time.h>
struct tm ${1:tm_date} = {0};
strptime(${2:date_string}, "${3|%Y-%m-%d,%d/%m/%Y,%m/%d/%Y,%Y-%m-%d %H:%M:%S|}", &${1});