|
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? |
NonikNone
|
Post subject: How to get Jforex client time? |
Post rating: 0
|
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.
|
|
|
|
 |
giorgio58
|
Post subject: Re: How to get Jforex client time? |
Post rating: 0
|
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|