rare date response

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Cesar Arguello on 03-02-2012 12:24:10 PM
I get a rare response from mediasense api.

in date tag obtain this 1328282249810 (Wed, 03 Aug 44061 03:36:50 GMT)  this is the unix time but the real date is 1328282249 (Fri, 03 Feb 2012 15:17:29 GMT) however  media sense add the last three number 810.
 
This event also occurs on the length were each session.

my question is

why mediasense add that last three digits to real unix time?


add response from mediasense api

=> Success: Your request was successfully completed.
     => 2000
     => stdClass Object
        (
             => Array
                (
                    [0] => stdClass Object
                        (
                             => Array
                                (
                                )

                             => CLOSED_NORMAL
                             => db13543caa8341
                             => stdClass Object
                                (
                                     => rtsp://172.30.199.31/archive/db13543caa8341
                                )

                             => 1328282249810
                             => Array
                                (
                                    [0] => stdClass Object
                                        (
                                             => 1328282249810
                                             => 35494
                                             => http://172.30.199.31:8081/ExportRaw?recording=db13543caa8341-TRACK1
                                             => 1
                                             => AUDIO
                                             => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [participantStartDate] => 1328282249810
                                                             => 087308476
                                                             =>
                                                             => 27096124
                                                            [participantDuration] => 35494
                                                             => CUCM-Altus
                                                        )

                                                )

                                        )

                                    [1] => stdClass Object
                                        (
                                             => 1328282249810
                                             => 35494
                                             => http://172.30.199.31:8081/ExportRaw?recording=db13543caa8341-TRACK0
                                             => 0
                                             => AUDIO
                                             => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [participantStartDate] => 1328282249810
                                                             => 1071
                                                             =>
                                                             => 27096123
                                                            [participantDuration] => 35494
                                                             => SEP001E138C7E00
                                                        )

                                                )

                                        )

                                )

                             => 35494
                        )

Subject: RE: rare date response
Replied by: Jeffrey Wolfeld on 03-02-2012 01:35:52 PM
All MediaSense times, both absolute timestamps as well as durations, are in milliseconds, not seconds.  Most Unix date conversion web sites assume you are entering the time in seconds, so if you use one of those sites to convert, you will always need to remove the last three digits.

Subject: RE: rare date response
Replied by: Cesar Arguello on 03-02-2012 02:07:01 PM
thanks a lot...

 closed-eyes

Attachments

    Outcomes