{"width":"100%","url":"https://nmk365.hatenablog.jp/entry/clang-obtain-current-date-time","version":"1.0","image_url":null,"author_name":"ktrito33","description":"C\u8a00\u8a9e\u3067\u73fe\u5728\u306e\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3002 gettimeofday() \u3067UNIX\u6642\u9593\u3092\u53d6\u5f97 UNIX\u6642\u9593\u3092 localtime() \u3067 tm \u69cb\u9020\u4f53\u306b\u5909\u63db \u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u73fe\u5728\u306e\u65e5\u6642\u3092 yyyy/MM/dd HH:mm:ss.fff \u5f62\u5f0f\u3067\u51fa\u529b\u3059\u308b\u3002 #include <stdio.h> #include <time.h> #include <sys/time.h> void main() { /* UNIX\u6642\u9593\u3092\u53d6\u5f97 */ struct timeval tv; if ( gettimeofday(&tv, NULL) != 0 ) { printf(\"gettimeofday fa\u2026","author_url":"https://blog.hatena.ne.jp/ktrito33/","height":"190","title":"C\u8a00\u8a9e: \u73fe\u5728\u306e\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b(1) | gettimeofday(), localtime()","blog_url":"https://nmk365.hatenablog.jp/","provider_name":"Hatena Blog","blog_title":"\u6020\u65e5\u8a18","categories":["C\u8a00\u8a9e"],"published":"2025-04-15 08:00:00","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmk365.hatenablog.jp%2Fentry%2Fclang-obtain-current-date-time\" title=\"C\u8a00\u8a9e: \u73fe\u5728\u306e\u65e5\u6642\u3092\u53d6\u5f97\u3059\u308b(1) | gettimeofday(), localtime() - \u6020\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog"}