return time without date

Scott_BlackwellScott_Blackwell Posts: 2
edited March 2017 in FAQs

Is there a way to return the time without the date? I tried service.time_to_string(service.system_time, '%I:%M:%S') as collected data attached to an entry order, but it doesn't display the same value that is in the default EntryTime in backtesting.

Tagged:

Comments

  • Ben_AwadBen_Awad Posts: 2
    edited August 2016

    Try: service.time_to_string(service.system_time, '%H:%M:%S')

    If you would like microseconds:

    service.time_to_string(service.system_time, '%H:%M:%S.%f')

    Note: service.system_time is in Eastern.

Sign In or Register to comment.