23 articles 日付と時刻関数

StructToTime

構造変数MqlDateTimeをdatetime型の値に変換し、結果の値を返します。 datetime  StructToTime(    MqlDateTime$  dt_struct      // structur…

TimeToStruct

日時型の値(01.01.1970からの秒数)を構造変数MqlDateTimeに変換します。 void  TimeToStruct(    datetime      dt,            // date and …

TimeGMTOffset

冬時間または夏時間への切り替えを考慮して、GMT時間とローカルコンピューター時間の現在の差を秒単位で返します。コンピューターの時間設定に依存します。 int  TimeGMTOffset(); 戻り値 電流差表すint型…

TimeDaylightSavings

サマータイムへの切り替えが行われた場合、夏時間の修正を秒単位で返します。コンピューターの時間設定に依存します。 int  TimeDaylightSavings(); 戻り値 冬時間(標準)に切り替えられている場合、0を…

TimeGMT

クライアント端末が実行されているコンピューターの現地時間までにDSTスイッチを考慮して計算されたGMTを返します。この関数には2つのバリアントがあります。 パラメータなしで呼び出す datetime  TimeGMT()…

現在の年【Year】

int Year( )   Returns the current year, i.e., the year of the last known server time. 現在の年を返します。すなわち、最後に知…

指定時刻の月【TimeMonth】

int TimeMonth(datetime time)   Returns the month number for the specified time. 指定された時刻の月数を返します。 Paramete…

指定時刻の分【TimeMinute】

int TimeMinute(datetime time)   Returns the minute for the specified time. 指定された時刻の分を返します。 Parameters: パラ…