3 Replies Latest reply on Nov 27, 2017 5:49 PM by shall

    PI Vision URL time parameters

    shall

      I am unable to find the proper syntax for passing time parameters. The documentation has information about how to pass a date, but I would like to specify a time, as well. (11/21/2017 8:03 PM, not just 21-nov-17)

       

      Thanks,

      Scott

        • Re: PI Vision URL time parameters
          Roger Palmen

          Interesting question. I'm a bit worried about regional settings influencing this, making the URLs dependent on each user's individual locale. Most of the time though, the ISO format (2007-04-05T12:30-02:00) should  work for any: ISO 8601 - Wikipedia

          With should i mean i did not test...

            • Re: PI Vision URL time parameters
              gmichaud-verreault

              All the URL parameter does is push what you have written to the starttime/endtime boxes at the bottom. So any PI time will work.

               

              Example 1 - Absolute time

              For  example is I use:

                   ?starttime=25-nov-17%2012:30:15&endtime=26-nov-17

              Then I get

                  

              Example 2 - Relative time

              You can also use relative time. So if I use:

                   ?starttime=t-1d&endtime=t

              I get:

               

              Example 3 - Absolute and relative time

              There are also many ways to specify PI Time, so I can also use:

                   ?starttime=2017-nov-01 18:00:10&endtime=t

              to get

               

              Timezone

              For the timezone, it can be specified using "tz". For example ?tz=UTC-5:00

               

              Gabriel

              2 of 2 people found this helpful
            • Re: PI Vision URL time parameters
              shall

              Thank you both! I think I tried the time in the URL, but I must have mistyped the space code. After that, I was stumped.