Announcement

Collapse
No announcement yet.

exact definition of raw time

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • exact definition of raw time

    Can anyone tell me the exact definition of rawtime. It is seconds since Jan 1, 1970 00:00:00 - but it seems to be off by one hour and one minute. For example, during the 12:00 noon, 9/12/2003 one minute bar, rawTime returns 1063364460, which according to my calculation is 11:01, 9/12/2003.

    I tried changing my timezone to see if it was based on a certain timezone, and the value did not change, so it is apparently based on local time.

    I am passing the date/time of each bar to a DLL and I am trying to avoid having to pass year,month,day,hour,minute,second explicitly.

  • #2
    Hello bullman,

    Rawtime is supposed to be the number of seconds since 1/1/1970. I've done a little testing and I've confirmed the result you are experiencing. I've put a word into our development team and will follow up with them on this issue.

    Are you able to pass a date object or string to the DLL? Let me know if you've tried getValue("Time").
    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
      RE: Reply to post 'exact definition of raw time'

      Jason,

      I am passing raw time to the DLL, I just adjust it by the necessary
      amount. It works fine. The best solution may be just to document the
      discrepancy - if you change it, it may affect a lot of existing code =
      out
      there that does date/time calculations from raw time.

      Thanks for your help.=20

      -----Original Message-----
      From: [email protected] [mailto:[email protected]]=20
      Sent: Wednesday, September 17, 2003 6:22 PM
      To: Mike Bielinski
      Subject: Reply to post 'exact definition of raw time'


      Hello bullman,

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      Comment

      Working...
      X