{"id":65659,"date":"2026-03-15T03:27:04","date_gmt":"2026-03-14T18:27:04","guid":{"rendered":"https:\/\/sys-tre.com\/forexguide\/?p=65659"},"modified":"2026-04-15T00:53:26","modified_gmt":"2026-04-14T15:53:26","slug":"mql5-datetime-functions","status":"publish","type":"post","link":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/","title":{"rendered":"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cTimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc"},"content":{"rendered":"\n<p>MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u3092\u5b8c\u5168\u89e3\u8aac\u3002TimeCurrent\u30fbTimeLocal\u30fbTimeToString\u30fbStringToTime\u30fbMqlDateTime\u69cb\u9020\u4f53\u30fbTimeToStruct\u30fbStructToTime\u30fbTimeDaylightSavings\u30fb\u5404\u7a2e\u6642\u9593\u8db3\u306e\u30d0\u30fc\u6642\u523b\u64cd\u4f5c\u307e\u3067\u3001EA\u958b\u767a\u3067\u5fc5\u8981\u306a\u65e5\u6642\u51e6\u7406\u306e\u3059\u3079\u3066\u3092\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"2400\" height=\"1260\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions.jpg\" alt=\"MQL5 \u65e5\u6642\u95a2\u6570 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ab\u30fc\u30c9\" class=\"wp-image-67625\" srcset=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions.jpg 2400w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions-300x158.jpg 300w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions-1024x538.jpg 1024w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions-768x403.jpg 768w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions-1536x806.jpg 1536w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-datetime-functions-2048x1075.jpg 2048w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"time-types\">MQL5\u306e\u6642\u9593\u306e\u7a2e\u985e<\/h2>\n\n\n\n<p>MQL5\u306b\u306f3\u7a2e\u985e\u306e\u6642\u9593\u304c\u3042\u308a\u307e\u3059\u3002EA\u958b\u767a\u3067\u306f\u300c\u30b5\u30fc\u30d0\u30fc\u6642\u9593\u300d\u304c\u57fa\u6e96\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u6642\u9593\u306e\u7a2e\u985e<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>TimeCurrent()<\/td><td>\u30b5\u30fc\u30d0\u30fc\u6642\u9593<\/td><td>\u6700\u5f8c\u306b\u53d7\u4fe1\u3057\u305f\u30c6\u30a3\u30c3\u30af\u306e\u6642\u523b\u3002EA\u306e\u57fa\u6e96\u6642\u9593<\/td><\/tr><tr><td>TimeLocal()<\/td><td>\u30ed\u30fc\u30ab\u30eb\u6642\u9593<\/td><td>PC\u306e\u30b7\u30b9\u30c6\u30e0\u6642\u523b<\/td><\/tr><tr><td>TimeGMT()<\/td><td>GMT\u6642\u9593<\/td><td>\u30b0\u30ea\u30cb\u30c3\u30b8\u6a19\u6e96\u6642<\/td><\/tr><tr><td>TimeTradeServer()<\/td><td>\u30b5\u30fc\u30d0\u30fc\u4e88\u6e2c\u6642\u9593<\/td><td>TimeCurrent()\u306e\u79d2\u7cbe\u5ea6\u7248\uff08\u30c6\u30a3\u30c3\u30af\u9593\u3082\u66f4\u65b0\uff09<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"3\u7a2e\u985e\u306e\u6642\u9593\"><code>void PrintAllTimes()\n  {\n   datetime server = TimeCurrent();\n   datetime local  = TimeLocal();\n   datetime gmt    = TimeGMT();\n   datetime trade  = TimeTradeServer();\n\n   PrintFormat(\"\u30b5\u30fc\u30d0\u30fc\u6642\u9593: %s\", TimeToString(server, TIME_DATE | TIME_SECONDS));\n   PrintFormat(\"\u30ed\u30fc\u30ab\u30eb\u6642\u9593: %s\", TimeToString(local, TIME_DATE | TIME_SECONDS));\n   PrintFormat(\"GMT\u6642\u9593:      %s\", TimeToString(gmt, TIME_DATE | TIME_SECONDS));\n   PrintFormat(\"\u53d6\u5f15\u30b5\u30fc\u30d0\u30fc: %s\", TimeToString(trade, TIME_DATE | TIME_SECONDS));\n\n   \/\/ GMT\u3068\u306e\u5dee\u5206\n   int gmtOffset = (int)(server - gmt);\n   PrintFormat(\"\u30b5\u30fc\u30d0\u30fcGMT\u30aa\u30d5\u30bb\u30c3\u30c8: %+d\u6642\u9593\", gmtOffset \/ 3600);\n  }<\/code><\/pre><\/div>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\" data-has-icon=\"1\">\n<svg height=\"1em\" width=\"1em\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" viewBox=\"0 0 48 48\"><path d=\"M47 37.9 27.5 4.1c-.7-1.3-2-2-3.5-2s-2.7.7-3.5 2L1 37.9c-.7 1.3-.7 2.7 0 4 .7 1.3 2 2 3.5 2h39.1c1.4 0 2.7-.7 3.5-2 .6-1.3.6-2.7-.1-4zM21.5 17.5c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v10c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-10zM24 38c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z\"><\/path><\/svg>\n<span><strong>\u91cd\u8981<\/strong><\/span>\n<\/div>\n<div class=\"cap_box_content\">\n\n<p><code>TimeCurrent()<\/code>\u306f\u30c6\u30a3\u30c3\u30af\u304c\u6765\u306a\u3044\u3068\u66f4\u65b0\u3055\u308c\u307e\u305b\u3093\u3002\u9031\u672b\u3084\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e2d\u306f\u91d1\u66dc\u306e\u6700\u7d42\u30c6\u30a3\u30c3\u30af\u6642\u523b\u306e\u307e\u307e\u3067\u3059\u3002\u6b63\u78ba\u306a\u73fe\u5728\u6642\u523b\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f<code>TimeTradeServer()<\/code>\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"datetime-literal\">datetime\u578b\u3068\u30ea\u30c6\u30e9\u30eb<\/h2>\n\n\n\n<p><code>datetime<\/code>\u578b\u306f1970\u5e741\u67081\u65e50\u66420\u52060\u79d2\uff08UNIX epoch\uff09\u304b\u3089\u306e\u7d4c\u904e\u79d2\u6570\u3092\u683c\u7d0d\u3059\u308blong\u578b\u3067\u3059\u3002\u65e5\u6642\u30ea\u30c6\u30e9\u30eb\u306f<code>D'2024.01.01 00:00'<\/code>\u306e\u5f62\u5f0f\u3067\u66f8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"datetime\u578b\u306e\u57fa\u672c\"><code>\/\/ \u30ea\u30c6\u30e9\u30eb\u8868\u8a18\ndatetime dt1 = D'2024.01.01 00:00:00';  \/\/ \u5b8c\u5168\u5f62\u5f0f\ndatetime dt2 = D'2024.01.01';           \/\/ \u6642\u523b\u7701\u7565\uff0800:00:00\uff09\ndatetime dt3 = D'2024.01.01 12:30';     \/\/ \u79d2\u7701\u7565\n\n\/\/ \u79d2\u6570\u3067\u306e\u8a08\u7b97\ndatetime now = TimeCurrent();\ndatetime oneHourLater = now + 3600;       \/\/ 1\u6642\u9593\u5f8c\ndatetime oneDayAgo    = now - 86400;      \/\/ 1\u65e5\u524d\ndatetime oneWeekAgo   = now - 7 * 86400;  \/\/ 1\u9031\u9593\u524d\n\n\/\/ datetime\u540c\u58eb\u306e\u5dee\uff08\u79d2\u6570\uff09\ndatetime start = D'2024.01.01';\ndatetime end   = D'2024.01.31';\nint diffDays = (int)(end - start) \/ 86400;  \/\/ 30\u65e5\nPrint(\"\u5dee\u5206:\", diffDays,\"\u65e5\");\n\n\/\/ datetime\u306e\u6bd4\u8f03\nif(TimeCurrent() > D'2024.01.01')\n   Print(\"2024\u5e74\u4ee5\u964d\u3067\u3059\");<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mqldatetime\">MqlDateTime\u69cb\u9020\u4f53<\/h2>\n\n\n\n<p><code>MqlDateTime<\/code>\u306f\u65e5\u6642\u306e\u5404\u8981\u7d20\uff08\u5e74\/\u6708\/\u65e5\/\u6642\/\u5206\/\u79d2\/\u66dc\u65e5\/\u5e74\u901a\u7b97\u65e5\uff09\u3092\u500b\u5225\u306b\u683c\u7d0d\u3059\u308b\u69cb\u9020\u4f53\u3067\u3059\u3002\u6642\u9593\u5e2f\u306e\u5224\u5b9a\u3084\u66dc\u65e5\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"MqlDateTime\u69cb\u9020\u4f53\"><code>\/\/ MqlDateTime\u69cb\u9020\u4f53\u306e\u5b9a\u7fa9\n\/\/ struct MqlDateTime {\n\/\/    int year;         \/\/ \u5e74\uff08\u4f8b: 2024\uff09\n\/\/    int mon;          \/\/ \u6708\uff081\u301c12\uff09\n\/\/    int day;          \/\/ \u65e5\uff081\u301c31\uff09\n\/\/    int hour;         \/\/ \u6642\uff080\u301c23\uff09\n\/\/    int min;          \/\/ \u5206\uff080\u301c59\uff09\n\/\/    int sec;          \/\/ \u79d2\uff080\u301c59\uff09\n\/\/    int day_of_week;  \/\/ \u66dc\u65e5\uff080=\u65e5\u66dc, 1=\u6708\u66dc, ..., 6=\u571f\u66dc\uff09\n\/\/    int day_of_year;  \/\/ \u5e74\u5185\u901a\u7b97\u65e5\uff081\u67081\u65e5=0\uff09\n\/\/ };\n\nMqlDateTime dt;\nTimeCurrent(dt);  \/\/ \u5f15\u6570\u306bMqlDateTime\u3092\u6e21\u3059\u3068\u5206\u89e3\u3057\u3066\u683c\u7d0d\n\nPrintFormat(\"%d\u5e74%d\u6708%d\u65e5 %02d:%02d:%02d\",\n            dt.year, dt.mon, dt.day, dt.hour, dt.min, dt.sec);\n\n\/\/ \u66dc\u65e5\u306e\u5224\u5b9a\nstring dayNames[] = {\"\u65e5\u66dc\u65e5\",\"\u6708\u66dc\u65e5\",\"\u706b\u66dc\u65e5\",\"\u6c34\u66dc\u65e5\",\"\u6728\u66dc\u65e5\",\"\u91d1\u66dc\u65e5\",\"\u571f\u66dc\u65e5\"};\nPrint(\"\u4eca\u65e5\u306f:\", dayNames[dt.day_of_week]);<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"timetostruct\">TimeToStruct \/ StructToTime\uff1a\u5909\u63db<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"datetime\u21d4MqlDateTime\u5909\u63db\"><code>\/\/ datetime \u2192 MqlDateTime\uff08\u5206\u89e3\uff09\nMqlDateTime dt;\nTimeToStruct(TimeCurrent(), dt);\nPrint(\"\u6642\u9593:\", dt.hour,\":\", dt.min);\n\n\/\/ MqlDateTime \u2192 datetime\uff08\u5408\u6210\uff09\nMqlDateTime custom;\ncustom.year = 2024;\ncustom.mon  = 6;\ncustom.day  = 15;\ncustom.hour = 12;\ncustom.min  = 0;\ncustom.sec  = 0;\ndatetime result = StructToTime(custom);\nPrint(\"\u5408\u6210:\", TimeToString(result));\n\n\/\/ \u4eca\u65e5\u306e00:00:00\u3092\u53d6\u5f97\ndatetime StartOfToday()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n   dt.hour = 0;\n   dt.min  = 0;\n   dt.sec  = 0;\n   return StructToTime(dt);\n  }\n\n\/\/ \u4eca\u9031\u6708\u66dc\u65e5\u306e00:00:00\u3092\u53d6\u5f97\ndatetime StartOfWeek()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n   int daysBack = dt.day_of_week;\n   if(daysBack == 0) daysBack = 7;  \/\/ \u65e5\u66dc\u306f\u524d\u306e\u6708\u66dc\u307e\u30677\u65e5\n   daysBack -= 1;  \/\/ \u6708\u66dc=0\u65e5\u524d\n\n   datetime today = StartOfToday();\n   return today - daysBack * 86400;\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"timetostring\">TimeToString \/ StringToTime\uff1a\u6587\u5b57\u5217\u5909\u63db<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u65e5\u6642\u306e\u6587\u5b57\u5217\u5909\u63db\"><code>datetime now = TimeCurrent();\n\n\/\/ datetime \u2192 \u6587\u5b57\u5217\nstring s1 = TimeToString(now);                          \/\/\"2024.06.15 12:30\"\nstring s2 = TimeToString(now, TIME_DATE);               \/\/\"2024.06.15\"\nstring s3 = TimeToString(now, TIME_MINUTES);            \/\/\"12:30\"\nstring s4 = TimeToString(now, TIME_SECONDS);            \/\/\"12:30:45\"\nstring s5 = TimeToString(now, TIME_DATE | TIME_SECONDS); \/\/\"2024.06.15 12:30:45\"\n\n\/\/ \u6587\u5b57\u5217 \u2192 datetime\ndatetime dt1 = StringToTime(\"2024.06.15 12:30:00\");\ndatetime dt2 = StringToTime(\"2024.06.15\");  \/\/ 00:00:00\u3068\u3057\u3066\u89e3\u91c8\ndatetime dt3 = StringToTime(\"12:30\");       \/\/ \u4eca\u65e5\u306e12:30\u3068\u3057\u3066\u89e3\u91c8\n\n\/\/ \u30ab\u30b9\u30bf\u30e0\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff08\u81ea\u5206\u3067\u7d44\u307f\u7acb\u3066\uff09\nstring CustomTimeFormat(datetime time)\n  {\n   MqlDateTime dt;\n   TimeToStruct(time, dt);\n   return StringFormat(\"%04d\/%02d\/%02d %02d:%02d:%02d\",\n                       dt.year, dt.mon, dt.day, dt.hour, dt.min, dt.sec);\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"time-trading\">EA\u958b\u767a\u3067\u306e\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/h2>\n\n\n\n<p>EA\u958b\u767a\u3067\u6700\u3082\u3088\u304f\u4f7f\u3046\u6642\u9593\u95a2\u9023\u306e\u5b9f\u88c5\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\u53d6\u5f15\u6642\u9593\u306e\u5236\u5fa1\u3001\u66dc\u65e5\u30d5\u30a3\u30eb\u30bf\u30fc\u3001\u5e74\u672b\u5e74\u59cb\u306e\u505c\u6b62\u306a\u3069\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u53d6\u5f15\u6642\u9593\u5e2f\u30d5\u30a3\u30eb\u30bf\u30fc<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\"><code>input int TradeStartHour = 8;   \/\/ \u53d6\u5f15\u958b\u59cb\uff08\u30b5\u30fc\u30d0\u30fc\u6642\u9593\uff09\ninput int TradeEndHour   = 20;  \/\/ \u53d6\u5f15\u7d42\u4e86\n\n\/\/ \u53d6\u5f15\u53ef\u80fd\u6642\u9593\u5e2f\u304b\u30c1\u30a7\u30c3\u30af\nbool IsTradeTime()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n\n   \/\/ \u571f\u65e5\u306f\u53d6\u5f15\u3057\u306a\u3044\n   if(dt.day_of_week == 0 || dt.day_of_week == 6)\n      return false;\n\n   \/\/ \u6642\u9593\u5e2f\u30c1\u30a7\u30c3\u30af\n   if(TradeStartHour < TradeEndHour)\n     {\n      \/\/ \u6a19\u6e96\uff08\u4f8b: 8\u6642\u301c20\u6642\uff09\n      return dt.hour >= TradeStartHour && dt.hour < TradeEndHour;\n     }\n   else\n     {\n      \/\/ \u65e5\u8de8\u304e\uff08\u4f8b: 22\u6642\u301c6\u6642\uff09\n      return dt.hour >= TradeStartHour || dt.hour < TradeEndHour;\n     }\n  }\n\n\/\/ \u6771\u4eac\u30fb\u30ed\u30f3\u30c9\u30f3\u30fbNY\u30bb\u30c3\u30b7\u30e7\u30f3\u5224\u5b9a\uff08GMT\u57fa\u6e96\uff09\nstring GetTradingSession()\n  {\n   MqlDateTime dt;\n   TimeToStruct(TimeGMT(), dt);\n   int h = dt.hour;\n\n   if(h >= 0 && h < 8)   return\"\u6771\u4eac\";\n   if(h >= 8 && h < 16)  return\"\u30ed\u30f3\u30c9\u30f3\";\n   if(h >= 13 && h < 22) return\"\u30cb\u30e5\u30fc\u30e8\u30fc\u30af\";\n   return\"\u30af\u30ed\u30fc\u30ba\";\n  }<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b4\u30c8\u30fc\u65e5\uff085\u30fb10\u65e5\uff09\u5224\u5b9a<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30b4\u30c8\u30fc\u65e5\u5224\u5b9a\"><code>\/\/ \u30b4\u30c8\u30fc\u65e5\uff085\u306e\u500d\u6570\u306e\u65e5\uff09\u304b\u30c1\u30a7\u30c3\u30af\nbool IsGotoDay()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n\n   \/\/ 5\u306e\u500d\u6570\u306e\u65e5\n   if(dt.day % 5 == 0) return true;\n\n   \/\/ 5\u306e\u500d\u6570\u65e5\u304c\u571f\u65e5\u306e\u5834\u5408\u3001\u524d\u306e\u91d1\u66dc\u65e5\u3082\u30b4\u30c8\u30fc\u65e5\n   \/\/ \u6b21\u306e5\u306e\u500d\u6570\u65e5\u3092\u8a08\u7b97\n   int nextGoto = ((dt.day \/ 5) + 1) * 5;\n   if(nextGoto > 28) nextGoto = 30;  \/\/ \u7c21\u6613\u8a08\u7b97\n\n   \/\/ \u6b21\u306e\u30b4\u30c8\u30fc\u65e5\u307e\u3067\u306e\u5dee\n   int diff = nextGoto - dt.day;\n   if(diff <= 2)  \/\/ 2\u65e5\u4ee5\u5185\u306a\u3089\u9031\u672b\u30c1\u30a7\u30c3\u30af\n     {\n      \/\/ \u6b21\u306e\u30b4\u30c8\u30fc\u65e5\u306e\u66dc\u65e5\u3092\u78ba\u8a8d\n      datetime futureDate = TimeCurrent() + diff * 86400;\n      MqlDateTime futureDt;\n      TimeToStruct(futureDate, futureDt);\n\n      \/\/ \u6b21\u306e\u30b4\u30c8\u30fc\u65e5\u304c\u571f\u66dc\u2192\u4eca\u65e5\u304c\u6728\u66dc\u306a\u3089\u7e70\u308a\u4e0a\u3052\n      if(futureDt.day_of_week == 6 &#038;&#038; dt.day_of_week == 4) return true;\n      \/\/ \u6b21\u306e\u30b4\u30c8\u30fc\u65e5\u304c\u65e5\u66dc\u2192\u4eca\u65e5\u304c\u91d1\u66dc\u306a\u3089\u7e70\u308a\u4e0a\u3052\n      if(futureDt.day_of_week == 0 &#038;&#038; dt.day_of_week == 5) return true;\n     }\n\n   return false;\n  }\n\n\/\/ \u6708\u672b\u5224\u5b9a\nbool IsMonthEnd()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n\n   \/\/ \u7fcc\u65e5\u306e\u6708\u304c\u9055\u3048\u3070\u4eca\u65e5\u306f\u6708\u672b\n   datetime tomorrow = TimeCurrent() + 86400;\n   MqlDateTime tmrw;\n   TimeToStruct(tomorrow, tmrw);\n\n   return dt.mon != tmrw.mon;\n  }<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5e74\u672b\u5e74\u59cb\u30fb\u91cd\u8981\u30a4\u30d9\u30f3\u30c8\u6642\u306e\u505c\u6b62<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30a4\u30d9\u30f3\u30c8\u505c\u6b62\u30d5\u30a3\u30eb\u30bf\u30fc\"><code>\/\/ \u5e74\u672b\u5e74\u59cb\u306e\u53d6\u5f15\u505c\u6b62\nbool IsHolidaySeason()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n\n   \/\/ 12\u670824\u65e5\u301c1\u67083\u65e5\u306f\u505c\u6b62\n   if(dt.mon == 12 && dt.day >= 24) return true;\n   if(dt.mon == 1 && dt.day <= 3) return true;\n\n   return false;\n  }\n\n\/\/ \u91d1\u66dc\u6df1\u591c\u306e\u65b0\u898f\u30a8\u30f3\u30c8\u30ea\u30fc\u7981\u6b62\uff08\u9031\u307e\u305f\u304e\u30ea\u30b9\u30af\u56de\u907f\uff09\nbool IsFridayLate()\n  {\n   MqlDateTime dt;\n   TimeCurrent(dt);\n   return dt.day_of_week == 5 &#038;&#038; dt.hour >= 20;  \/\/ \u91d1\u66dc20\u6642\u4ee5\u964d\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"bar-time\">\u30d0\u30fc\u6642\u523b\u306e\u64cd\u4f5c<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30d0\u30fc\u6642\u523b\u64cd\u4f5c\"><code>\/\/ \u7279\u5b9a\u306e\u6642\u523b\u306e\u30d0\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\nint barIndex = iBarShift(_Symbol, PERIOD_H1, D'2024.06.15 12:00');\nPrint(\"\u30d0\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9:\", barIndex);\n\n\/\/ \u7279\u5b9a\u30d0\u30fc\u306e\u6642\u523b\u3092\u53d6\u5f97\ndatetime barTime = iTime(_Symbol, PERIOD_H1, 0);  \/\/ \u73fe\u5728\u306e\u30d0\u30fc\nPrint(\"\u73fe\u5728\u306e\u30d0\u30fc\u958b\u59cb\u6642\u523b:\", TimeToString(barTime));\n\n\/\/ \u65e5\u8db3\u306e\u59cb\u307e\u308a\u306e\u6642\u523b\u3092\u53d6\u5f97\ndatetime dailyOpen = iTime(_Symbol, PERIOD_D1, 0);\nPrint(\"\u4eca\u65e5\u306e\u65e5\u8db3\u958b\u59cb:\", TimeToString(dailyOpen));\n\n\/\/ \u7d4c\u904e\u30d0\u30fc\u6570\u306e\u8a08\u7b97\nint BarsInRange(string symbol, ENUM_TIMEFRAMES tf, datetime from, datetime to)\n  {\n   return Bars(symbol, tf, from, to);\n  }\n\n\/\/ \u7279\u5b9a\u671f\u9593\u306e\u30d0\u30fc\u6570\nint barsToday = Bars(_Symbol, PERIOD_H1, StartOfToday(), TimeCurrent());\nPrint(\"\u4eca\u65e5\u306eH1\u30d0\u30fc\u6570:\", barsToday);<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dst\">\u590f\u6642\u9593\uff08DST\uff09\u306e\u51e6\u7406<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u590f\u6642\u9593\u306e\u51e6\u7406\"><code>\/\/ \u30b5\u30fc\u30d0\u30fc\u6642\u9593\u3092JST\uff08GMT+9\uff09\u306b\u5909\u63db\u3059\u308b\u95a2\u6570\ndatetime ServerToJST(datetime serverTime)\n  {\n   \/\/ TimeCurrent()\u3068TimeGMT()\u306e\u5dee\u5206\u3067\u30b5\u30fc\u30d0\u30fc\u306eGMT\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u7b97\u51fa\n   int serverGmtOff = (int)(TimeCurrent() - TimeGMT());\n   datetime gmt = serverTime - serverGmtOff;\n   return gmt + 9 * 3600;  \/\/ GMT+9 = JST\n  }\n\nvoid OnTick()\n  {\n   \/\/ \u590f\u6642\u9593\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u53d6\u5f97\n   int dstShift = TimeDaylightSavings();  \/\/ \u590f\u6642\u9593\u4e2d\u306f3600\uff081\u6642\u9593\uff09\n   int serverGmtOff = (int)(TimeCurrent() - TimeGMT());  \/\/ \u30b5\u30fc\u30d0\u30fcGMT\u30aa\u30d5\u30bb\u30c3\u30c8\n\n   PrintFormat(\"\u590f\u6642\u9593\u30b7\u30d5\u30c8: %d\u79d2  \u30b5\u30fc\u30d0\u30fcGMT\u30aa\u30d5\u30bb\u30c3\u30c8: %d\u6642\u9593\",\n               dstShift, serverGmtOff \/ 3600);\n\n   \/\/ \u30b5\u30fc\u30d0\u30fc\u6642\u9593\u2192JST\u5909\u63db\n   datetime jst = ServerToJST(TimeCurrent());\n   Print(\"JST:\", TimeToString(jst, TIME_DATE | TIME_SECONDS));\n  }<\/code><\/pre><\/div>\n\n\n\n<p class=\"is-style-big_icon_point\">\u5927\u534a\u306eFX\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u9593\u306fGMT+2\uff08\u51ac\u6642\u9593\uff09\/ GMT+3\uff08\u590f\u6642\u9593\uff09\u3067\u3059\u3002JST\u3068\u306e\u6642\u5dee\u306f6\u301c7\u6642\u9593\u3067\u3059\u3002\u4ef2\u5024\uff089:55 JST\uff09\u3092\u72d9\u3046EA\u3092\u4f5c\u308b\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u6642\u9593\u3068\u306e\u5909\u63db\u304c\u5fc5\u9808\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mql4-datetime\">MQL4\u3068\u306e\u6bd4\u8f03<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>MQL4<\/th><th>MQL5<\/th><\/tr><\/thead><tbody><tr><td>TimeCurrent()<\/td><td>TimeCurrent()\uff08\u540c\u3058\uff09<\/td><\/tr><tr><td>TimeLocal()<\/td><td>TimeLocal()\uff08\u540c\u3058\uff09<\/td><\/tr><tr><td>TimeGMT()<\/td><td>TimeGMT()\uff08\u540c\u3058\uff09<\/td><\/tr><tr><td>Year(), Month(), Day()<\/td><td>MqlDateTime\u69cb\u9020\u4f53\u3067\u53d6\u5f97<\/td><\/tr><tr><td>Hour(), Minute(), Seconds()<\/td><td>MqlDateTime\u69cb\u9020\u4f53\u3067\u53d6\u5f97<\/td><\/tr><tr><td>DayOfWeek()<\/td><td>MqlDateTime.day_of_week<\/td><\/tr><tr><td>DayOfYear()<\/td><td>MqlDateTime.day_of_year<\/td><\/tr><tr><td>TimeToStr()<\/td><td>TimeToString()<\/td><\/tr><tr><td>StrToTime()<\/td><td>StringToTime()<\/td><\/tr><tr><td>iBarShift()<\/td><td>iBarShift()\uff08MQL5 build 2085+\u3067\u8ffd\u52a0\uff09<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n\n\n<p class=\"is-style-icon_info\">MQL4\u306e<code>Year()<\/code>\u3001<code>Month()<\/code>\u3001<code>Day()<\/code>\u3001<code>Hour()<\/code>\u7b49\u306e\u95a2\u6570\u306fMQL5\u306b\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\u4ee3\u308f\u308a\u306b<code>MqlDateTime<\/code>\u69cb\u9020\u4f53\u3092\u4f7f\u3063\u3066\u5e74\u6708\u65e5\u6642\u5206\u79d2\u3092\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u304c\u958b\u767a\u3057\u305fEA\u3092\u304a\u63a2\u3057\u306e\u65b9\u306f \u2192 <a href=\"https:\/\/sys-tre.com\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b7\u30b9\u30c8\u30ec.COM EA\u4e00\u89a7<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>MQL5\u3067\u306fMqlDateTime\u69cb\u9020\u4f53\u306b\u3088\u3063\u3066\u6642\u9593\u64cd\u4f5c\u304c\u307e\u3068\u307e\u308a\u3001Year()\/Hour()\u306a\u3069\u306e\u500b\u5225\u95a2\u6570\u3088\u308a\u6271\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306b\u6ce8\u610f\u3057\u306a\u304c\u3089TimeCurrent()\uff08\u30b5\u30fc\u30d0\u30fc\u6642\u9593\uff09\u3068TimeLocal()\uff08\u30ed\u30fc\u30ab\u30eb\u6642\u9593\uff09\u3092\u4f7f\u3044\u5206\u3051\u307e\u3057\u3087\u3046\u3002\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\u306fdt.day_of_week\u3068dt.hour\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u5b9f\u88c5\u3059\u308b\u306e\u304c\u5b9a\u756a\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<div class=\"swell-block-faq\">\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u306e\u7279\u5fb4\u306f\uff1f<\/h3><div class=\"faq_a\"><p>TimeCurrent()\u3067\u30b5\u30fc\u30d0\u30fc\u6642\u9593\u3001TimeLocal()\u3067\u30ed\u30fc\u30ab\u30eb\u6642\u9593\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002MQL5\u3067\u306fMqlDateTime\u69cb\u9020\u4f53\u3067\u5e74\u6708\u65e5\u6642\u5206\u79d2\u3092\u4e00\u62ec\u53d6\u5f97\u3067\u304d\u3001TimeToStruct()\u3067\u5909\u63db\u3057\u307e\u3059\u3002MQL4\u306eYear()\/Month()\/Hour()\u306a\u3069\u306e\u500b\u5225\u95a2\u6570\u3088\u308a\u6271\u3044\u3084\u3059\u3044\u8a2d\u8a08\u3067\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MqlDateTime\u69cb\u9020\u4f53\u306e\u4f7f\u3044\u65b9\u306f\uff1f<\/h3><div class=\"faq_a\"><p>MqlDateTime dt; TimeToStruct(TimeCurrent(),dt);\u3067dt.year\/dt.month\/dt.day\/dt.hour\/dt.min\/dt.sec\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002MQL4\u306eYear()\/Hour()\u95a2\u6570\u306b\u76f8\u5f53\u3057\u307e\u3059\u304c\u30011\u56de\u306e\u547c\u3073\u51fa\u3057\u3067\u5168\u8981\u7d20\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL5\u3067\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>MqlDateTime\u69cb\u9020\u4f53\u3067\u6642\u9593\u3092\u53d6\u5f97\u3057\u3001dt.day_of_week\u3067\u66dc\u65e5\uff080=\u65e5\u66dc\uff09\u3001dt.hour\u3067\u6642\u9593\u5e2f\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002if(dt.hour>=startHour && dt.hour&lt;endHour)\u306e\u5f62\u3067\u6642\u9593\u5e2f\u3092\u5236\u9650\u3057\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL5\u306eiBarShift()\u306b\u76f8\u5f53\u3059\u308b\u95a2\u6570\u306f\uff1f<\/h3><div class=\"faq_a\"><p>MQL5\u306b\u306fiBarShift()\u304c\u306a\u3044\u305f\u3081\u3001Bars(Symbol(),Period(),start_time,TimeCurrent())-1\u3067\u30d0\u30fc\u6570\u3092\u53d6\u5f97\u3059\u308b\u304b\u3001CopyTime()\u3067\u6642\u523b\u914d\u5217\u3092\u53d6\u5f97\u3057\u3066ArrayBsearch()\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL5\u3067\u30bf\u30a4\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u306e\u7cbe\u5ea6\u306f\uff1f<\/h3><div class=\"faq_a\"><p>EventSetTimer(\u79d2\u6570)\u3067\u8a2d\u5b9a\u3057\u3001EventSetMillisecondTimer(\u30df\u30ea\u79d2)\u3067\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u3082\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u306fCPU\u8ca0\u8377\u304c\u9ad8\u304f\u306a\u308b\u305f\u3081\u3001\u5fc5\u8981\u306a\u5834\u5408\u306e\u307f\u4f7f\u7528\u3057\u3001OnDeinit()\u3067EventKillTimer()\u3092\u5fd8\u308c\u305a\u306b\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">TimeCurrent()\u3068TimeLocal()\u306e\u9055\u3044\u306f\uff1f<\/h3><div class=\"faq_a\"><p>TimeCurrent()\u306f\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u9593\uff08\u6a19\u6e96GMT+2\/3\uff09\u3001TimeLocal()\u306fPC\u306e\u30ed\u30fc\u30ab\u30eb\u6642\u9593\u3092\u8fd4\u3057\u307e\u3059\u3002\u53d6\u5f15\u30ed\u30b8\u30c3\u30af\u306b\u306fTimeCurrent()\u3092\u4f7f\u3046\u306e\u304c\u5b89\u5168\u3067\u3059\u3002TimeGMT()\u3067UTC\u6642\u9593\u3082\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n<\/div>\n\n\n<div class=\"p-blogParts post_content\" data-partsID=\"59754\">\n\n  <style>\n   \n    .systrade-horizontal-banner {\n      width: 100%;\n      max-width: 800px;\n      margin: 20px auto;\n      background: linear-gradient(135deg, #F5F5F7, #E8E9EB);\n      border-radius: 12px;\n      overflow: hidden;\n      position: relative;\n      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);\n      font-family: 'Noto Sans JP', sans-serif;\n      box-shadow: \n        0 10px 20px rgba(0, 0, 0, 0.1),\n        0 0 0 1px rgba(0, 0, 0, 0.03) inset;\n      display: flex;\n      flex-direction: row;\n      align-items: center;\n      height: auto;\n      min-height: 120px;\n      box-sizing: border-box;\n    }\n\n    .systrade-horizontal-banner::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background: \n        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),\n        radial-gradient(circle at 100% 100%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);\n      z-index: 1;\n    }\n\n    .systrade-horizontal-banner::after {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      height: 2px;\n      background: linear-gradient(90deg, \n        transparent,\n        #FF6B00,\n        transparent\n      );\n      animation: borderGlow 3s ease-in-out infinite;\n      z-index: 2;\n    }\n\n    @keyframes borderGlow {\n      0%, 100% { opacity: 0.5; }\n      50% { opacity: 1; }\n    }\n\n    .systrade-horizontal-banner:hover {\n      transform: translateY(-2px);\n      box-shadow: \n        0 12px 25px rgba(0, 0, 0, 0.15),\n        0 0 0 1px rgba(0, 0, 0, 0.05) inset;\n    }\n\n    .systrade-horizontal-anchor {\n      display: flex;\n      width: 100%;\n      text-decoration: none;\n      color: inherit;\n      position: relative;\n      z-index: 2;\n      flex-wrap: wrap;\n    }\n\n    .systrade-horizontal-header {\n      width: 30%;\n      min-width: 150px;\n      position: relative;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      padding: 12px;\n      background: rgba(255, 255, 255, 0.5);\n      border-radius: 10px;\n      border: 1px solid rgba(255, 255, 255, 0.8);\n      overflow: hidden;\n      backdrop-filter: blur(10px);\n      -webkit-backdrop-filter: blur(10px);\n      margin: 10px;\n      height: calc(100% - 20px);\n    }\n\n    .systrade-horizontal-header::before {\n      content: '';\n      position: absolute;\n      top: -50%;\n      left: -50%;\n      width: 200%;\n      height: 200%;\n      background: linear-gradient(\n        45deg,\n        transparent,\n        rgba(255, 255, 255, 0.4),\n        transparent\n      );\n      transform: rotate(45deg);\n      animation: headerGlow 4s ease-in-out infinite;\n    }\n\n    @keyframes headerGlow {\n      0% { transform: rotate(45deg) translateX(-100%); }\n      50% { transform: rotate(45deg) translateX(100%); }\n      100% { transform: rotate(45deg) translateX(100%); }\n    }\n\n    .systrade-horizontal-inner {\n      width: 100%;\n      position: relative;\n      z-index: 2;\n      text-align: center;\n    }\n\n    .systrade-horizontal-image {\n      height: 30px;\n      width: auto;\n      margin: 8px auto;\n      display: block;\n      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));\n    }\n\n    .systrade-horizontal-title {\n      color: #333;\n      font-size: 0.9em;\n      font-weight: 900;\n      white-space: nowrap;\n      background: linear-gradient(90deg, #333, #FF6B00, #333);\n      background-size: 200% auto;\n      -webkit-background-clip: text;\n      -webkit-text-fill-color: transparent;\n      animation: titleFlow 3s linear infinite;\n      padding: 4px 0;\n    }\n\n    @keyframes titleFlow {\n      0% { background-position: 0% center; }\n      100% { background-position: 200% center; }\n    }\n\n    .systrade-horizontal-content {\n      display: flex;\n      flex: 1;\n      flex-direction: column;\n      justify-content: space-between;\n      padding: 12px;\n    }\n\n    .systrade-horizontal-list {\n      display: grid;\n      grid-template-columns: repeat(2, 1fr);\n      gap: 8px;\n      margin-bottom: 10px;\n    }\n\n    .systrade-horizontal-item {\n      background: rgba(255, 255, 255, 0.7);\n      padding: 8px 6px;\n      border-radius: 8px;\n      border: 1px solid rgba(255, 255, 255, 0.9);\n      text-align: center;\n      transition: all 0.3s ease;\n      position: relative;\n      overflow: hidden;\n    }\n\n    .systrade-horizontal-item:hover {\n      transform: translateY(-2px);\n      background: rgba(255, 107, 0, 0.05);\n      border-color: rgba(255, 107, 0, 0.2);\n      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);\n    }\n\n    .systrade-horizontal-item::after {\n      content: '';\n      position: absolute;\n      top: -50%;\n      left: -50%;\n      width: 200%;\n      height: 200%;\n      background: linear-gradient(\n        45deg,\n        transparent,\n        rgba(255, 107, 0, 0.1),\n        transparent\n      );\n      transform: rotate(45deg);\n      animation: itemGlow 3s ease-in-out infinite;\n      opacity: 0;\n    }\n\n    .systrade-horizontal-item:hover::after {\n      opacity: 1;\n    }\n\n    @keyframes itemGlow {\n      0% { transform: rotate(45deg) translateX(-100%); }\n      100% { transform: rotate(45deg) translateX(100%); }\n    }\n\n    .systrade-horizontal-desc {\n      color: #333;\n      font-size: 0.7em;\n      font-weight: 700;\n      line-height: 1.3;\n      position: relative;\n      z-index: 1;\n    }\n\n    .systrade-horizontal-button {\n      background: linear-gradient(90deg, #FF6B00, #FF8534);\n      color: white;\n      padding: 10px;\n      border-radius: 8px;\n      font-weight: 900;\n      font-size: 0.85em;\n      text-align: center;\n      position: relative;\n      overflow: hidden;\n      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n      transition: all 0.3s ease;\n      margin-top: auto;\n    }\n\n    .systrade-horizontal-button::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background: linear-gradient(90deg, \n        transparent,\n        rgba(255, 255, 255, 0.2),\n        transparent\n      );\n      transform: translateX(-100%);\n      animation: buttonGlow 3s ease-in-out infinite;\n    }\n\n    @keyframes buttonGlow {\n      0% { transform: translateX(-100%); }\n      50% { transform: translateX(100%); }\n      100% { transform: translateX(100%); }\n    }\n\n    .systrade-horizontal-button:hover {\n      transform: translateY(-2px);\n      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);\n    }\n\n    \/* Responsive breakpoints *\/\n    @media (max-width: 768px) {\n      .systrade-horizontal-banner {\n        min-height: auto;\n      }\n      \n      .systrade-horizontal-header {\n        min-width: 120px;\n        padding: 8px;\n      }\n      \n      .systrade-horizontal-image {\n        height: 25px;\n      }\n      \n      .systrade-horizontal-title {\n        font-size: 0.8em;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.65em;\n      }\n      \n      .systrade-horizontal-button {\n        font-size: 0.8em;\n        padding: 8px;\n      }\n    }\n    \n    @media (max-width: 600px) {\n      .systrade-horizontal-banner {\n        flex-direction: column;\n        min-height: auto;\n      }\n      \n      .systrade-horizontal-header {\n        width: calc(100% - 20px);\n        min-width: auto;\n        margin: 10px;\n      }\n      \n      .systrade-horizontal-content {\n        width: 100%;\n      }\n      \n      .systrade-horizontal-image {\n        height: 30px;\n        margin: 5px auto;\n      }\n      \n      .systrade-horizontal-title {\n        font-size: 0.85em;\n      }\n      \n      .systrade-horizontal-list {\n        grid-template-columns: repeat(2, 1fr);\n        gap: 6px;\n        margin-bottom: 8px;\n      }\n      \n      .systrade-horizontal-item {\n        padding: 6px 4px;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.65em;\n      }\n      \n      .systrade-horizontal-button {\n        margin-top: 5px;\n      }\n    }\n\n    @media (max-width: 400px) {\n      .systrade-horizontal-list {\n        grid-template-columns: 1fr;\n      }\n      \n      .systrade-horizontal-item {\n        padding: 8px 6px;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.7em;\n      }\n    }\n    \n    \/* Print media query *\/\n    @media print {\n      .systrade-horizontal-banner {\n        box-shadow: none;\n        border: 1px solid #ccc;\n      }\n      \n      .systrade-horizontal-banner::before,\n      .systrade-horizontal-banner::after,\n      .systrade-horizontal-header::before,\n      .systrade-horizontal-item::after,\n      .systrade-horizontal-button::before {\n        display: none;\n      }\n      \n      .systrade-horizontal-button {\n        background: #FF6B00;\n        text-shadow: none;\n      }\n    }\n  <\/style>\n\n  <div class=\"systrade-horizontal-banner\">\n    <a href=\"https:\/\/sys-tre.com\/\" class=\"systrade-horizontal-anchor\">\n      <div class=\"systrade-horizontal-header\">\n        <div class=\"systrade-horizontal-inner\">\n          <div class=\"systrade-horizontal-title\">FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u306a\u3089\uff01<\/div>\n          <img decoding=\"async\" src=\"https:\/\/sys-tre.com\/broker\/wp-content\/uploads\/2025\/01\/\u30b7\u30b9\u30c8\u30ec.COM_B-2.png\" alt=\"\u30b7\u30b9\u30c8\u30ec.COM \u516c\u5f0fCTA\u30ed\u30b4\" class=\"systrade-horizontal-image\">\n        <\/div>\n      <\/div>\n\n      <div class=\"systrade-horizontal-content\">\n        <div class=\"systrade-horizontal-list\">\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u5b9f\u7e3e\u306e\u3042\u308bEA\u304c\u7121\u6599\u3067\u4f7f\u3048\u308b\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u6709\u6599\u7248\u3067\u53e3\u5ea7\u5236\u9650\u306a\u3057\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u5168\u5546\u54c1\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u516c\u958b\u4e2d\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u521d\u5fc3\u8005\u3067\u3082\u5b89\u5fc3\u3057\u3066\u3054\u5229\u7528\u53ef\u80fd\uff01<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"systrade-horizontal-button\">\n          \u4eca\u3059\u3050\u7121\u6599\u3067\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\u3092\u59cb\u3081\u308b\uff01\n        <\/div>\n      <\/div>\n    <\/a>\n  <\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">MQL5\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 \u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-trade-functions\/\">MQL5 \u53d6\u5f15\u95a2\u6570<\/a>\uff1aCTrade\u30fbOrderSend<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-indicator-functions\/\">MQL5 \u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570<\/a>\uff1aiMA\u30fbCopyBuffer<\/li>\n<li>MQL5 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\uff1a\u8a3c\u62e0\u91d1\u8a08\u7b97<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-event-handlers\/\">MQL5 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9<\/a>\uff1aOnTrade\u30fbOnTimer<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-error-guide\/\">MQL5 \u30a8\u30e9\u30fc\u30ac\u30a4\u30c9<\/a>\uff1a\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/li>\n<li>MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff1aMqlDateTime<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/ea-howto\/\">EA\u59cb\u3081\u65b9\u30ac\u30a4\u30c9<\/a>\uff1aMT5\u3078\u306eEA\u8a2d\u5b9a\u624b\u9806<\/li>\n<\/ul>\n\n\n\n\n\n<script type=\"application\/ld+json\">\n{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\": [\n    {\"@type\":\"Question\",\"name\":\"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u306e\u7279\u5fb4\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MqlDateTime\u69cb\u9020\u4f53\u3067\u5e74\u6708\u65e5\u6642\u5206\u79d2\u3092\u4e00\u62ec\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002MQL4\u306e\u500b\u5225\u95a2\u6570\uff08Year()\/Hour()\u7b49\uff09\u3088\u308a\u6271\u3044\u3084\u3059\u3044\u8a2d\u8a08\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MqlDateTime\u69cb\u9020\u4f53\u306e\u4f7f\u3044\u65b9\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MqlDateTime dt; TimeToStruct(TimeCurrent(),dt);\u3067dt.year\/month\/day\/hour\/min\/sec\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL5\u3067\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MqlDateTime\u3067\u6642\u9593\u53d6\u5f97\u3057\u3001dt.day_of_week\u3067\u66dc\u65e5\u3001dt.hour\u3067\u6642\u9593\u5e2f\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL5\u306eiBarShift()\u306b\u76f8\u5f53\u3059\u308b\u95a2\u6570\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"Bars(Symbol(),Period(),start_time,TimeCurrent())-1\u3067\u30d0\u30fc\u6570\u53d6\u5f97\u304b\u3001CopyTime()+ArrayBsearch()\u3067\u691c\u7d22\u3057\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL5\u3067\u30bf\u30a4\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u306e\u7cbe\u5ea6\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"EventSetMillisecondTimer()\u3067\u30df\u30ea\u79d2\u7cbe\u5ea6\u306e\u30bf\u30a4\u30de\u30fc\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002OnDeinit()\u3067EventKillTimer()\u3092\u5fd8\u308c\u305a\u306b\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"TimeCurrent()\u3068TimeLocal()\u306e\u9055\u3044\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"TimeCurrent()\u306f\u30b5\u30fc\u30d0\u30fc\u6642\u9593\uff08GMT+2\/3\uff09\u3001TimeLocal()\u306fPC\u306e\u30ed\u30fc\u30ab\u30eb\u6642\u9593\u3067\u3059\u3002\u53d6\u5f15\u30ed\u30b8\u30c3\u30af\u306b\u306fTimeCurrent()\u3092\u4f7f\u3046\u306e\u304c\u5b89\u5168\u3067\u3059\u3002\"}}\n]}\n<\/script>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-indicator-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5ciMA\u30fbiRSI\u89e3\u8aac<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570\uff08iMA\u30fbiRSI\u30fbiBands\u30fbiMACD\u30fbiCustom\uff09\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\u3002\u30c6\u30af\u30cb\u30ab\u30eb\u6307\u6a19\u5024\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-account-market-info\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u30ed\u30c3\u30c8\u8a08\u7b97<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u53e3\u5ea7\u60c5\u5831\u95a2\u6570\uff08AccountBalance\u30fbAccountEquity\uff09\u3068MarketInfo()\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30ea\u30b9\u30af\u7ba1\u7406\u3068\u30ed\u30c3\u30c8\u8a08\u7b97\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql5-error-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL5 \u30a8\u30e9\u30fc\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u30b3\u30fc\u30c9\u4e00\u89a7\u30fb\u539f\u56e0\u30fb\u30c7\u30d0\u30c3\u30b0<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL5\u306e\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u4e00\u89a7\u30fbGetLastError()\u306e\u4f7f\u3044\u65b9\u30fb\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u89e3\u6c7a\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql5-array-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL5 \u914d\u5217\u95a2\u6570\u30ac\u30a4\u30c9\uff5cArrayResize\u30fbCopyBuffer\u89e3\u8aac<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL5\u306e\u914d\u5217\u95a2\u6570\uff08ArrayResize\u30fbArraySort\u30fbArrayCopy\u30fbCopyBuffer\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql5-string-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL5 \u6587\u5b57\u5217\u95a2\u6570\u30ac\u30a4\u30c9\uff5cStringSplit\u30fbReplace\u30fbFormat<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL5\u306e\u6587\u5b57\u5217\u95a2\u6570\uff08StringFind\u30fbStringSplit\u30fbStringReplace\u30fbStringFormat\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u6587\u5b57\u5217\u64cd\u4f5c\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<address class=\"author author-box\">\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\uff5c200\u7a2e\u985e\u4ee5\u4e0a\u306eEA\u3092\u30d5\u30a9\u30ef\u30fc\u30c9\u8a08\u6e2c\u3059\u308b\u904b\u55b63\u5e74\u306e\u691c\u8a3c\u30e1\u30c7\u30a3\u30a2\u3002MetaTrader (MT4\/MT5) \u3092\u5b9f\u904b\u7528\u3057\u3066\u304d\u305f\u7de8\u96c6\u90e8\u304c\u76e3\u4fee\u30fb\u57f7\u7b46\u3057\u3066\u3044\u307e\u3059\u3002<\/address>\n","protected":false},"excerpt":{"rendered":"<p>MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u3092\u5b8c\u5168\u89e3\u8aac\u3002TimeCurrent\u30fbTimeLocal\u30fbTimeToString\u30fbStringToTime\u30fbMqlDateTime\u69cb\u9020\u4f53\u30fbTimeToStruct\u30fbStructToTime\u30fbTim [&hellip;]<\/p>\n","protected":false},"author":686,"featured_media":71194,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[301],"tags":[303],"class_list":["post-65659","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mql-reference","tag-mql5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/title>\n<meta name=\"description\" content=\"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\" \/>\n<meta property=\"og:description\" content=\"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Forex Guide\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-14T18:27:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T15:53:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/systre_COM\" \/>\n<meta name=\"twitter:site\" content=\"@systre_COM\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/\"},\"author\":{\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\"},\"headline\":\"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cTimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\",\"datePublished\":\"2026-03-14T18:27:04+00:00\",\"dateModified\":\"2026-04-14T15:53:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/\"},\"wordCount\":191,\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"keywords\":[\"MQL5\"],\"articleSection\":[\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/\",\"name\":\"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"datePublished\":\"2026-03-14T18:27:04+00:00\",\"dateModified\":\"2026-04-14T15:53:26+00:00\",\"description\":\"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"contentUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"width\":2400,\"height\":1260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-datetime-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\",\"item\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/category\\\/mql-reference\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cTimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"description\":\"\u30b7\u30b9\u30c8\u30ec.COM ForexGuide\uff5cFX\u81ea\u52d5\u58f2\u8cb7\u306b\u95a2\u3059\u308b\u304a\u5f79\u7acb\u3061\u60c5\u5831\u3092\u66f4\u65b0\u4e2d\uff01\",\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"alternateName\":\"\u30b7\u30b9\u30c8\u30ecCOM\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"alternateName\":\"\u30b7\u30b9\u30c8\u30ecCOM\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg\",\"contentUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg\",\"width\":500,\"height\":500,\"caption\":\"\u30b7\u30b9\u30c8\u30ec.COM\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/systre_COM\",\"https:\\\/\\\/www.youtube.com\\\/@systre_com\",\"https:\\\/\\\/www.facebook.com\\\/people\\\/%E3%82%B7%E3%82%B9%E3%83%88%E3%83%ACcom\\\/61587699411751\\\/\",\"https:\\\/\\\/www.instagram.com\\\/systre_com\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@sys_tre.com\"],\"description\":\"FX\u81ea\u52d5\u58f2\u8cb7EA\uff08Expert Advisor\uff09200\u672c\u4ee5\u4e0a\u3092\u7121\u6599\u63d0\u4f9b\u3059\u308b\u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3002\u5168EA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u30fb\u30ea\u30a2\u30eb\u53e3\u5ea7\u904b\u7528\u30c7\u30fc\u30bf\u3092\u516c\u958b\u3002MT4\\\/MT5\u5bfe\u5fdc\u3002\",\"foundingDate\":\"2023\",\"knowsAbout\":[\"FX\u81ea\u52d5\u58f2\u8cb7\",\"Expert Advisor\",\"MetaTrader\",\"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\",\"\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\"],\"contactPoint\":{\"@type\":\"ContactPoint\",\"contactType\":\"customer service\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/contact-us\\\/\",\"availableLanguage\":[\"Japanese\",\"English\"]},\"legalName\":\"Attempia Ltd\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"caption\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\"},\"description\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\u306f\u3001FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u3068\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3092\u5c02\u9580\u3068\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30e1\u30c7\u30a3\u30a2\u300c\u30b7\u30b9\u30c8\u30ec.COM\u300d\u306e\u7de8\u96c6\u30c1\u30fc\u30e0\u3067\u3059\u3002200\u672c\u4ee5\u4e0a\u306eEA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u516c\u958b\u3057\u3001\u5b9f\u969b\u306e\u904b\u7528\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u5ba2\u89b3\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u306e\u57f7\u7b46\u30fb\u76e3\u4fee\u306fMetaTrader\uff08MT4\\\/MT5\uff09\u3067\u306e\u5b9f\u904b\u7528\u7d4c\u9a13\u3092\u6301\u3064\u30b9\u30bf\u30c3\u30d5\u304c\u62c5\u5f53\u3002\",\"sameAs\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/about\\\/\",\"https:\\\/\\\/x.com\\\/systre_COM\"],\"jobTitle\":\"FX\u81ea\u52d5\u58f2\u8cb7\u30fb\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790 \u7de8\u96c6\u30c1\u30fc\u30e0\",\"knowsAbout\":[\"FX\u81ea\u52d5\u58f2\u8cb7\",\"Expert Advisor (EA)\",\"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\",\"MetaTrader 4\",\"MetaTrader 5\",\"MQL4\",\"MQL5\",\"\u30ea\u30b9\u30af\u7ba1\u7406\",\"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30c9\"],\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/about\\\/\",\"worksFor\":{\"@type\":\"Organization\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","description":"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","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:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/","og_locale":"ja_JP","og_type":"article","og_title":"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","og_description":"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/","og_site_name":"Forex Guide","article_published_time":"2026-03-14T18:27:04+00:00","article_modified_time":"2026-04-14T15:53:26+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","type":"image\/png"}],"author":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_image":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","twitter_creator":"@https:\/\/twitter.com\/systre_COM","twitter_site":"@systre_COM","twitter_misc":{"\u57f7\u7b46\u8005":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#article","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/"},"author":{"name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1"},"headline":"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cTimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","datePublished":"2026-03-14T18:27:04+00:00","dateModified":"2026-04-14T15:53:26+00:00","mainEntityOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/"},"wordCount":191,"publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","keywords":["MQL5"],"articleSection":["MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/","url":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/","name":"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#primaryimage"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","datePublished":"2026-03-14T18:27:04+00:00","dateModified":"2026-04-14T15:53:26+00:00","description":"MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#primaryimage","url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","contentUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","width":2400,"height":1260},{"@type":"BreadcrumbList","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/sys-tre.com\/forexguide\/"},{"@type":"ListItem","position":2,"name":"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","item":"https:\/\/sys-tre.com\/forexguide\/category\/mql-reference\/"},{"@type":"ListItem","position":3,"name":"MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cTimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc"}]},{"@type":"WebSite","@id":"https:\/\/sys-tre.com\/forexguide\/#website","url":"https:\/\/sys-tre.com\/forexguide\/","name":"\u30b7\u30b9\u30c8\u30ec.COM","description":"\u30b7\u30b9\u30c8\u30ec.COM ForexGuide\uff5cFX\u81ea\u52d5\u58f2\u8cb7\u306b\u95a2\u3059\u308b\u304a\u5f79\u7acb\u3061\u60c5\u5831\u3092\u66f4\u65b0\u4e2d\uff01","publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"alternateName":"\u30b7\u30b9\u30c8\u30ecCOM","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sys-tre.com\/forexguide\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/sys-tre.com\/forexguide\/#organization","name":"\u30b7\u30b9\u30c8\u30ec.COM","alternateName":"\u30b7\u30b9\u30c8\u30ecCOM","url":"https:\/\/sys-tre.com\/forexguide\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/logo\/image\/","url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2023\/05\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg","contentUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2023\/05\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg","width":500,"height":500,"caption":"\u30b7\u30b9\u30c8\u30ec.COM"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/systre_COM","https:\/\/www.youtube.com\/@systre_com","https:\/\/www.facebook.com\/people\/%E3%82%B7%E3%82%B9%E3%83%88%E3%83%ACcom\/61587699411751\/","https:\/\/www.instagram.com\/systre_com\/","https:\/\/www.tiktok.com\/@sys_tre.com"],"description":"FX\u81ea\u52d5\u58f2\u8cb7EA\uff08Expert Advisor\uff09200\u672c\u4ee5\u4e0a\u3092\u7121\u6599\u63d0\u4f9b\u3059\u308b\u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3002\u5168EA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u30fb\u30ea\u30a2\u30eb\u53e3\u5ea7\u904b\u7528\u30c7\u30fc\u30bf\u3092\u516c\u958b\u3002MT4\/MT5\u5bfe\u5fdc\u3002","foundingDate":"2023","knowsAbout":["FX\u81ea\u52d5\u58f2\u8cb7","Expert Advisor","MetaTrader","\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790","\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9"],"contactPoint":{"@type":"ContactPoint","contactType":"customer service","url":"https:\/\/sys-tre.com\/contact-us\/","availableLanguage":["Japanese","English"]},"legalName":"Attempia Ltd"},{"@type":"Person","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1","name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g","caption":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8"},"description":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\u306f\u3001FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u3068\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3092\u5c02\u9580\u3068\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30e1\u30c7\u30a3\u30a2\u300c\u30b7\u30b9\u30c8\u30ec.COM\u300d\u306e\u7de8\u96c6\u30c1\u30fc\u30e0\u3067\u3059\u3002200\u672c\u4ee5\u4e0a\u306eEA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u516c\u958b\u3057\u3001\u5b9f\u969b\u306e\u904b\u7528\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u5ba2\u89b3\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u306e\u57f7\u7b46\u30fb\u76e3\u4fee\u306fMetaTrader\uff08MT4\/MT5\uff09\u3067\u306e\u5b9f\u904b\u7528\u7d4c\u9a13\u3092\u6301\u3064\u30b9\u30bf\u30c3\u30d5\u304c\u62c5\u5f53\u3002","sameAs":["https:\/\/sys-tre.com\/forexguide\/about\/","https:\/\/x.com\/systre_COM"],"jobTitle":"FX\u81ea\u52d5\u58f2\u8cb7\u30fb\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790 \u7de8\u96c6\u30c1\u30fc\u30e0","knowsAbout":["FX\u81ea\u52d5\u58f2\u8cb7","Expert Advisor (EA)","\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790","MetaTrader 4","MetaTrader 5","MQL4","MQL5","\u30ea\u30b9\u30af\u7ba1\u7406","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30c9"],"url":"https:\/\/sys-tre.com\/forexguide\/about\/","worksFor":{"@type":"Organization","name":"\u30b7\u30b9\u30c8\u30ec.COM","url":"https:\/\/sys-tre.com\/"}}]}},"_links":{"self":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/users\/686"}],"replies":[{"embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/comments?post=65659"}],"version-history":[{"count":3,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65659\/revisions"}],"predecessor-version":[{"id":67375,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65659\/revisions\/67375"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/media\/71194"}],"wp:attachment":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/media?parent=65659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/categories?post=65659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/tags?post=65659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}