MediaSense Forums

« Back to Technical Discussion

RE: rare date response

Combination View Flat View Tree View
Threads [ Previous | Next ]
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
                        )

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.

thanks a lot...

emoticon