Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to interpret dates in data_series

9 views
Skip to first unread message

Payal Doshi

unread,
Sep 7, 2011, 10:42:49 AM9/7/11
to chartbeat
I am using historical data about people using data_series. I want to
display it to the user with date and time but I am not able to
understand how to convert the dates received to user recognizable
format. say DD/MM/YY HH:MM:SS

Can you please tell how to go about it or give to a pointer to know
these details.

Also does Chartbeat provide an API to find average,min,max time spent
by each user on the website.

Looking forward for your reply

Thanks

Allan Beaufour

unread,
Sep 9, 2011, 9:19:34 AM9/9/11
to chartbeat
Hi Payal,

On Sep 7, 10:42 am, Payal Doshi <payalbdo...@gmail.com> wrote:
> I am using historical data about people using data_series. I want to
> display it to the user with date and time but I am not able to
> understand how to convert the dates received to user recognizable
> format. say DD/MM/YY HH:MM:SS
>
> Can you please tell how to go about it or give to a pointer to know
> these details.

Dates returned by the chartbeat API are unix timestamps. So to convert
it to a string in for example javascript you can do:
new Date(1315541100 * 1000).toString()

> Also does Chartbeat provide an API to find average,min,max time spent
> by each user on the website.

You can't get it on a per user level, but you can get it on a per page
level. Is that what you want?

Allan
Reply all
Reply to author
Forward
0 new messages