cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
220
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links