{"id":88,"date":"2013-07-24T18:28:22","date_gmt":"2013-07-24T09:28:22","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=88"},"modified":"2014-06-19T17:15:37","modified_gmt":"2014-06-19T08:15:37","slug":"%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%81%a7%e8%aa%95%e7%94%9f%e6%97%a5%e3%81%8b%e3%82%89%e5%b9%b4%e9%bd%a2%e8%a8%88%e7%ae%97","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=88","title":{"rendered":"[PHP][VB] \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u8a95\u751f\u65e5\u304b\u3089\u5e74\u9f62\u8a08\u7b97"},"content":{"rendered":"<p>\u8a95\u751f\u65e5\u304b\u3089\u5e74\u9f62\u3092\u6c42\u3081\u308b\u65b9\u6cd5\u3092\u63a2\u3057\u3066\u3044\u305f\u3089\u3001<br \/>\n\u9762\u767d\u3044\u65b9\u6cd5\u304c\u3042\u3063\u305f\u3002<\/p>\n<pre class=\"lang:php decode:true crayon-selected\">echo (int)((20070823 - 19850101)\/10000);<\/pre>\n<p>\u3064\u307e\u308a\u3001\u73fe\u5728\u306e\u65e5\u6642\u304b\u3089\u3001\u8a95\u751f\u65e5\u3092\u5f15\u304d\u300110000\u3067\u5272\u3063\u3066\u6574\u6570\u5024\u3060\u3051\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<p>PHP\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<pre class=\"lang:php decode:true\">$birthDateTime = new DateTime(\"1982-04-20\"); \r\n$age = (int)((date(\"Ymd\")-$birthDateTime-&gt;format(\"Ymd\"))\/10000));<\/pre>\n<p>VisualBasic.NET(VB.NET)\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u305f\u3002(2014\/06\/19 \u8ffd\u8a18)<\/p>\n<pre class=\"lang:vbnet decode:true\">Dim birthDate As New Date(\"1982-04-20\")\r\nDim age As Integer = Integer.Parse(Date.Today.ToString(\"yyyyMMdd\")) - Integer.Parse(birthDate.ToString(\"yyyyMMdd\"))) \/ 10000<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3057\u304b\u3057\u3001\u9762\u767d\u3044\u8a08\u7b97\u5f0f\u3060\u3068\u601d\u3046\u3002<br \/>\n\u897f\u66a6\u4ee5\u5916\u306e\u3001\u6708\u3068\u65e5\u306f\u305f\u3060\u306e\u6570\u5024\u3068\u3057\u3066\u8a08\u7b97\u3057\u3066\u3044\u308b\u3063\u307d\u3044\u3002<br \/>\n\u7d20\u6674\u3089\u3057\u3044\u3002<\/p>\n<p>\u3060\u304c\u3001\u53c2\u8003\u30b5\u30a4\u30c8\u3068\u304b\u8272\u3005\u898b\u308b\u3068\u3001\u3053\u306e\u8a08\u7b97\u5f0f\u306f\u3001\u8a08\u7b97\u51e6\u7406\u304c\u9045\u3044\u5834\u5408\u3082\u3042\u308b\u3057\u3001<br \/>\n\u306a\u306b\u3088\u308a\u3001\u696d\u52d9\u7528\u9014\u306b\u3088\u3063\u3066\u306f\u3001\u4f7f\u3048\u306a\u3044\u3089\u3057\u3044\u3002<br \/>\n\u307e\u3041\u3001\u5e74\u9f62\u306e\u8aa4\u5dee\u3067\u3068\u3093\u3067\u3082\u306a\u3044\u3053\u3068\u304c\u8d77\u304d\u308b\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u306a\u3051\u308c\u3070\u3001\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u7121\u3055\u305d\u3046\u3060\u3002<\/p>\n<p>\u53c2\u8003<br \/>\n<a href=\"http:\/\/itpro.nikkeibp.co.jp\/article\/Watcher\/20070822\/280097\/http:\/\/\">http:\/\/itpro.nikkeibp.co.jp\/article\/Watcher\/20070822\/280097\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a95\u751f\u65e5\u304b\u3089\u5e74\u9f62\u3092\u6c42\u3081\u308b\u65b9\u6cd5\u3092\u63a2\u3057\u3066\u3044\u305f\u3089\u3001 \u9762\u767d\u3044\u65b9\u6cd5\u304c\u3042\u3063\u305f\u3002 echo (int)((20070823 &#8211; 19850101)\/10000); \u3064\u307e\u308a\u3001\u73fe\u5728\u306e\u65e5\u6642\u304b\u3089\u3001\u8a95\u751f\u65e5\u3092\u5f15\u304d\u300110000\u3067\u5272\u3063\u3066\u6574\u6570\u5024\u3060\u3051\u3092\u4f7f\u7528&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=88\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66,9],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-dot-net","category-php"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":5,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":275,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/275"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}