{"id":121781,"date":"2024-03-24T03:53:35","date_gmt":"2024-03-23T18:53:35","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-04-04T23:15:55","modified_gmt":"2024-04-04T14:15:55","slug":"c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>time\u95a2\u6570\u306fC\u8a00\u8a9e\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u73fe\u5728\u6642\u523b\u3092\u79d2\u5358\u4f4d\u3067\u53d6\u5f97\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>time \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb \u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>time\u95a2\u6570\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>time_t time(time_t *seconds);\r\n<\/code><\/pre>\n<p>\u79d2\u6570\u53d7\u3051\u53d6\u308a\u7528time_t\u578b\u30dd\u30a4\u30f3\u30bfseconds\u306b\u73fe\u5728\u306e\u30b7\u30b9\u30c6\u30e0\u6642\u9593\u306e\u79d2\u6570\u3092\u53d7\u3051\u53d6\u3089\u305b\u308b<\/p>\n<p>\u8fd4\u3055\u308c\u308b\u5024\u306f\u3001\u73fe\u5728\u306e\u30b7\u30b9\u30c6\u30e0\u6642\u9593\u3092\u8868\u3059time_t\u578b\u3067\u3059\u3002<\/p>\n<p>time\u95a2\u6570\u306e\u4f7f\u7528\u4f8b\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;stdio.h&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;time.h&gt;<\/span><\/span>\r\n<span class=\"hljs-type\">int<\/span> <span class=\"hljs-title function_\">main<\/span><span class=\"hljs-params\">()<\/span> {\r\n<span class=\"hljs-type\">time_t<\/span> seconds;\r\nseconds = time(<span class=\"hljs-literal\">NULL<\/span>);\r\n<span class=\"hljs-built_in\">printf<\/span>(<span class=\"hljs-string\">\"\u5f53\u524d\u7cfb\u7edf\u65f6\u95f4\u7684\u79d2\u6570\uff1a%ld\\n\"<\/span>, seconds);\r\n<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-number\">0<\/span>;\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001\u307e\u305a\u5909\u6570`seconds`\u3092time_t\u578b\u3067\u5b9a\u7fa9\u3057\u3001\u95a2\u6570`time`\u3092\u547c\u3073\u51fa\u3057\u3066\u73fe\u5728\u6642\u523b\u306e\u79d2\u6570\u3092`seconds`\u5909\u6570\u306b\u4ee3\u5165\u3057\u3001\u6700\u5f8c\u306b\u95a2\u6570`printf`\u3092\u4f7f\u3063\u3066`seconds`\u5909\u6570\u306e\u5024\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30a4\u30e0\u95a2\u6570\u306f1970\u5e741\u67081\u65e500:00:00\u304b\u3089\u306e\u7d4c\u904e\u79d2\u3092\u8fd4\u3059\u305f\u3081\u3001\u7d50\u679c\u3068\u3057\u3066\u5f97\u3089\u308c\u308b\u5024\u306f\u5927\u304d\u306a\u6574\u6570\u306b\u306a\u308a\u307e\u3059\u3002\u6642\u523b\u3092\u3088\u308a\u7c21\u5358\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u3001localtime\u3001gmtime\u306a\u3069\u306e\u4ed6\u306e\u6642\u523b\u51e6\u7406\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001time_t\u578b\u306e\u5024\u3092struct tm\u578b\u306e\u69cb\u9020\u4f53\u306b\u5909\u63db\u3057\u3001\u3088\u308a\u8a73\u7d30\u306a\u6642\u523b\u60c5\u5831\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>time\u95a2\u6570\u306fC\u8a00\u8a9e\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u73fe\u5728\u6642\u523b\u3092\u79d2\u5358\u4f4d\u3067\u53d6\u5f97\u3059\u308b\u3082\u306e\u3067\u3059\u3002 time \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb \u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002 time\u95a2\u6570\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 time [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-121781","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"time\u95a2\u6570\u306fC\u8a00\u8a9e\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u73fe\u5728\u6642\u523b\u3092\u79d2\u5358\u4f4d\u3067\u53d6\u5f97\u3059\u308b\u3082\u306e\u3067\u3059\u3002 time \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb \u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002 time\u95a2\u6570\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 time [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T18:53:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T14:15:55+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T18:53:35+00:00\",\"dateModified\":\"2024-04-04T14:15:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","og_description":"time\u95a2\u6570\u306fC\u8a00\u8a9e\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u73fe\u5728\u6642\u523b\u3092\u79d2\u5358\u4f4d\u3067\u53d6\u5f97\u3059\u308b\u3082\u306e\u3067\u3059\u3002 time \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb \u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002 time\u95a2\u6570\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 time [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T18:53:35+00:00","article_modified_time":"2024-04-04T14:15:55+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T18:53:35+00:00","dateModified":"2024-04-04T14:15:55+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"c\u8a00\u8a9e\u306etime\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e8%a8%80%e8%aa%9e%e3%81%aetime%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/121781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=121781"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/121781\/revisions"}],"predecessor-version":[{"id":297481,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/121781\/revisions\/297481"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=121781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=121781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=121781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}