Which time zone does date and time function ‘time’ represent?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #171652 quote
    gsurendra
    Participant
    New

    I am creating a trading program for the first time. I want to ensure that the program runs only from 8am to 23.59 Singapore time.

    Will the time function ‘time’ represent my local time or GMT or some other time zone?

    If ‘time’ function represents my local time zone then i assume that the below code should be correct. Please confirm this as well

    MySchedule = time >= 080000 and time <= 235900 //8am to 11.59pm 

     

    Thank you in Advance 🙂

    #171653 quote
    GraHal
    Participant
    Master

    Yes it will represent your local time if you have the timezone set to your local time … same as I have on attached for my local time – UK / London

    Time.jpg Time.jpg
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Which time zone does date and time function ‘time’ represent?


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
gsurendra @gsurendra Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by GraHal
4 years, 8 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 06/12/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...