Announcement

Collapse
No announcement yet.

Obtaining the current system time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Obtaining the current system time

    Is there an EFS term or command that will allow you to identify the current system time in terms of minutes and hours?

    I've done several searchs online and unfortunately, the only command I can find are the getHour() and getMinute() commands but those relate to the timestamp of the current bar ... which, if it's a 30-minute bar (for example), would not be the current time but rather the time when that bar was started.

    Any thoughts?

  • #2
    Re: Obtaining the current system time

    strupp1
    You can retrieve the system time using the Date Object
    Alex


    Originally posted by strupp1
    Is there an EFS term or command that will allow you to identify the current system time in terms of minutes and hours?

    I've done several searchs online and unfortunately, the only command I can find are the getHour() and getMinute() commands but those relate to the timestamp of the current bar ... which, if it's a 30-minute bar (for example), would not be the current time but rather the time when that bar was started.

    Any thoughts?

    Comment


    • #3
      Thanks!

      Alex,

      Thanks - it looks like this did the trick.

      Comment


      • #4
        Re: Thanks!

        strupp1
        My pleasure
        Alex


        Originally posted by strupp1
        Alex,

        Thanks - it looks like this did the trick.

        Comment

        Working...
        X