{"id":1417,"date":"2015-04-20T10:27:58","date_gmt":"2015-04-20T01:27:58","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=1417"},"modified":"2015-04-20T10:27:58","modified_gmt":"2015-04-20T01:27:58","slug":"datetimeserial","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/datetimeserial\/","title":{"rendered":"\u65e5\u4ed8\u6642\u523b\uff1a\u6570\u5024\u304b\u3089\u65e5\u4ed8\u30fb\u6642\u523b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff08 DateSerial \u95a2\u6570\u3001TimeSerial \u95a2\u6570 \uff09"},"content":{"rendered":"<h2>DateSerial \u95a2\u6570\uff08\u6570\u5024\u3092\u4f7f\u3063\u3066\u65e5\u4ed8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff09<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>date<\/em> = <strong>DateSerial<\/strong> ( <em>year<\/em>, <em>month<\/em>, <em>day<\/em> )<\/p>\n<\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>year&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5e74\u3092\u8868\u3059 100 \uff5e 9999 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u30fb\u6570\u5f0f\uff08Integer\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>month&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6708\u3092\u8868\u3059 1 \uff5e 12 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u30fb\u6570\u5f0f\uff08Integer\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>day&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u65e5\u3092\u8868\u3059 1 \uff5e 31 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u30fb\u6570\u5f0f\uff08Integer\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>date&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u5e74\u3001\u6708\u3001\u65e5\u306b\u5bfe\u5fdc\u3059\u308b\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff08\u5185\u90e8\u51e6\u7406\u5f62\u5f0f Date\uff09\u306e\u5024\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u5f15\u6570 <em>year<\/em>, <em>month<\/em>, <em>day<\/em> \u306b\u6307\u5b9a\u3059\u308b\u5024\u304c\u3001<strong>\u4e0a\u8a18\u7bc4\u56f2\u5916\u306e\u5834\u5408\u3067\u3082\u30a8\u30e9\u30fc\u3068\u306f\u306a\u3089\u305a<\/strong>\u3001\u305d\u306e\u5024\u30fb\u4ed6\u306e\u5f15\u6570\u306b\u3057\u305f\u304c\u3063\u3066\u8a08\u7b97\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\uff08\u4f8b\uff09year 15, month -1, day 300 \u3068\u6307\u5b9a\u3059\u308b\u3068\u623b\u308a\u5024\u306f\u300c2015\/8\/27\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>TimeSerial \u95a2\u6570\uff08\u6570\u5024\u3092\u4f7f\u3063\u3066\u6642\u523b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff09<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>time<\/em> = <strong>TimeSerial<\/strong> ( <em>hour<\/em>, <em>minute<\/em>, <em>second<\/em> )<\/p>\n<\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>hour&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6642\u3092\u8868\u3059 0 \uff5e 23 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u30fb\u6570\u5f0f\uff08Integer\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>minute&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5206\u3092\u8868\u3059 0 \uff5e 59 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u30fb\u6570\u5f0f\uff08Integer\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>second&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u79d2\u3092\u8868\u3059 0 \uff5e 59 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u30fb\u6570\u5f0f\uff08Integer\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>time&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u6642\u3001\u5206\u3001\u79d2\u306b\u5bfe\u5fdc\u3059\u308b\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff08\u5185\u90e8\u51e6\u7406\u5f62\u5f0f Date\uff09\u306e\u5024\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u5f15\u6570 <em>hour<\/em>, <em>minute<\/em>, <em>second<\/em> \u306b\u6307\u5b9a\u3059\u308b\u5024\u304c\u3001<strong>\u4e0a\u8a18\u7bc4\u56f2\u5916\u306e\u5834\u5408\u3067\u3082\u30a8\u30e9\u30fc\u3068\u306f\u306a\u3089\u305a<\/strong>\u3001\u305d\u306e\u5024\u30fb\u4ed6\u306e\u5f15\u6570\u306b\u3057\u305f\u304c\u3063\u3066\u8a08\u7b97\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\uff08\u4f8b\uff09hour -1, minute 100, second 0 \u3068\u6307\u5b9a\u3059\u308b\u3068\u623b\u308a\u5024\u306f\u300c0:40:00\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>DateSerial \u95a2\u6570\u3001TimeSerial \u95a2\u6570\u306e\u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"DateSerial \u95a2\u6570\u3001TimeSerial \u95a2\u6570\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_DateTimeSerial()\r\n    \r\n    \r\n    Dim str\r\n    \r\n    'DateSerial \u95a2\u6570\r\n    \r\n    str = DateSerial(2015, 10, 7) & Chr(13) & _\r\n          DateSerial(15, -1, 300)\r\n    \r\n    \r\n    'TimeSerial \u95a2\u6570\r\n    \r\n    str = str & Chr(13) & _\r\n          TimeSerial(5, 45, 21) & Chr(13) & _\r\n          TimeSerial(-1, 100, 0)\r\n    \r\n    MsgBox str\r\n\r\nEnd Sub\r\n\u3000\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/datetimeserial01.jpg?ssl=1\" rel=\"lightbox[1417]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/datetimeserial01.jpg?resize=154%2C232&#038;ssl=1\" alt=\"DateSerial \u95a2\u6570\u3000TimeSerial \u95a2\u6570\u3000\u4f7f\u7528\u4f8b\" width=\"154\" height=\"232\" class=\"alignnone size-full wp-image-1419\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>DateSerial \u95a2\u6570\uff08\u6570\u5024\u3092\u4f7f\u3063\u3066\u65e5\u4ed8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\uff09 \u3010\u66f8\u5f0f\u3011 date  &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1419,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":"\u65e5\u4ed8\u6642\u523b\uff1a\u6570\u5024\u304b\u3089\u65e5\u4ed8\u6642\u523b\u3092\u53d6\u5f97\uff08DateSerial\u3001TimeSerial\uff09"},"categories":[37],"tags":[137,138,63,38,135,136],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/datetimeserial01.jpg?fit=154%2C232&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-mR","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1417"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=1417"}],"version-history":[{"count":3,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1417\/revisions"}],"predecessor-version":[{"id":1421,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1417\/revisions\/1421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/1419"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=1417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=1417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=1417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}