int Hour( )
Returns the hour (0,1,2,..23) of the last known server time by the moment
of the program start (this value will not change within the time of the
program execution).
プログラムを開始したときに、最後に知り得たサーバー時刻の時間(0,1,2,..23)を返します。(この値は、プログラム実行の時間内では、変化しません。)
Note: At the testing, the last known server time is modelled. 注意:テストでは、最後に知り得たサーバ時刻はモデル化されています。
Sample:
サンプル:
bool is_siesta=false;
if(Hour()>=12 || Hour()<17)
is_siesta=true;
|