Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Forecast Timestamp

    Windy API v4
    2
    2
    136
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SaiKeerti last edited by

      Hi ,

      I am looking at the response of the Windy API and in that there is ts: int[] , I believe, this integer array has time stamps in it. Could someone please help me with the timestamp format. Here is an example. 16016292200000. Also, there are 80 values in the response (in this integer array). Does this mean that its giving 10 days weather info (8 times a day)?
      Need your inputs please!

      Thanks,
      Sai

      1 Reply Last reply Reply Quote 0
      • vsinceac
        vsinceac last edited by

        It is Unix Timestamp, provided with 4 extra digits after the second unit digit (i.e. values are in hundreds of microseconds, instead seconds as expected).
        Try 1601629220 instead 16016292200000 in any timestamp to date converter (e.g. here): you should get "Friday 2 October 2020 09:00:20"

        ¯\_(ツ)_/¯

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
        NodeBB & contributors, OSM & contributors, HERE maps
        Terms and Conditions     Privacy Policy