XavierAndreu

Obtener dia semana

Mar 22nd, 2023
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. //Youtube-->https://youtu.be/HmHoXxdGLWs
  2.  
  3. void OnTick()
  4. {
  5. datetime TiempoLocal=TimeLocal();
  6. MqlDateTime Fechatimepo;
  7. TimeToStruct(TiempoLocal,Fechatimepo);
  8. int DiaSemana=Fechatimepo.day_of_week;
  9.  
  10. Comment("\nTiempoLocal : ", TiempoLocal,
  11.  
  12. "\n\nDiaSemana : ", DiaSemana
  13. );
  14. }
Advertisement
Add Comment
Please, Sign In to add comment