Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How to get Jforex client time?
 Post subject: How to get Jforex client time? Post rating: 0   Post Posted: Tue 13 Jun, 2017, 23:25 

User rating: 0
Joined: Tue 09 May, 2017, 23:05
Posts: 14
Hi guys,

Calendar.getInstance().getTime() gives me the my OS time.

How to get Jforex platform time?

Thanks.


 
 Post subject: Re: How to get Jforex client time? Post rating: 0   Post Posted: Thu 13 Jul, 2017, 11:06 

User rating: 0
Joined: Mon 31 Mar, 2014, 16:50
Posts: 21
Location: Italy, San Severino Marche MC
For the time I used.

private long ora ()
{
long timeOra = 0;
if (engine.getType() == IEngine.Type.TEST)
{
timeOra = tick.getTime();
}
else
{
timeOra = System.currentTimeMillis();
}
return timeOra;
}

I hope you are useful.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com