Announcement

Collapse
No announcement yet.

System Time Constructs?

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

  • System Time Constructs?

    I frequently use tick charts and need to know how long the current bar has been active. I can't find a construct that gives "System Time Now" -- all I can fetch is "Time This Bar Opened"; the standard JavaScript constructs "now.getSeconds()" etc. yield syntax errors in eSignal's implementation.
    Am I missing something? Is there a way to do what I need, short of communicating with another study which has an interval of 1S? (The latter option seems terribly wasteful of system resources, and I'm close to maxed out already...)
    Thanks in advance!
    ~ Irv Prail ~

  • #2
    Hello Irv,

    To get system time, you need to use a date object. Are you setting now to a JavaScript Date Object?


    PHP Code:
    var now = new Date();
    var 
    secs now.getSeconds(); 
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      THANK YOU Jason! I knew that, but forgot. And refused to remember, looks like! Dunno what I'd do without you guys!!
      ~ Irv ~

      Comment

      Working...
      X