SteelAce:
I need to get DateTime variable some hours back from current moment (TimeCurrent()). There is approximate sample how it can be done in Visual Basic (Subtract) function:
datetime PreviouseTime; int FewHours = 3; PreviousTime = TimeCurrent() - (FewHours * 60 * 60); // Fewhours * 60 * 60 == seconds in FewHours
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need to get DateTime variable some hours back from current moment (TimeCurrent()). There is approximate sample how it can be done in Visual Basic (Subtract) function: