Timestamp in local or UTC time?

68 views
Skip to first unread message

larsen....@gmail.com

unread,
Oct 13, 2014, 8:25:31 PM10/13/14
to mnemosyne-...@googlegroups.com
Hi! Looking at the statistical data collected centrally by the
Mnemosyne Project, [1] is there any way to find the local time
at which a user reviewed a particular card? So far as I can tell
(correct me if I’m wrong), the timestamp stored for each row is
in UTC.

Cheers,


Tom.


[1] E.g. https://archive.org/details/20140127MnemosynelogsAll.db,
thanks to Gwern.

Peter Bienstman

unread,
Oct 14, 2014, 2:43:44 AM10/14/14
to mnemosyne-...@googlegroups.com
Hi,

The timestamp is in local time. The next rep is however stored as midnight UTC to represent just a date as opposed to a date and time.

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/24bdebf0-
> a642-460f-a8dc-deea35ad3ec6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

larsen....@gmail.com

unread,
Nov 11, 2014, 5:10:38 PM11/11/14
to mnemosyne-...@googlegroups.com
Hi Peter!

I’ve been doing some analysis on the research dataset.
There’s something which is kinda disconcerting about it,
however: if the timestamp is always in local time, it seems
that more card reviews are performed around 2–3 am than in
the afternoon and evening hours... somehow that doesn’t
seem especially plausible.

Summary:

http://i.imgur.com/DBrUapx.png

Analysis:

https://gist.github.com/anonymous/6b6304493adf2008fef2

I’ve probably gone wrong somewhere,
but it would be helpful to know where.

Cheers,


Tom.

Peter Bienstman

unread,
Nov 12, 2014, 2:21:41 AM11/12/14
to mnemosyne-...@googlegroups.com
Oops, seems I remembered wrong: I looked back into the code and ththe timestamp is calculated by time.time()
https://docs.python.org/2/library/time.html
> users+un...@googlegroups.com.
> > > To post to this group, send email to mnemosyne-proj-
> > > us...@googlegroups.com.
> > > To view this discussion on the web visit
> > > https://groups.google.com/d/msgid/mnemosyne-proj-users/24bdebf0-
> > > a642-460f-a8dc-deea35ad3ec6%40googlegroups.com.
> > > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/136eecf5-
> b7b1-4971-9b10-d2d820203fbb%40googlegroups.com.

larsen....@gmail.com

unread,
Nov 12, 2014, 2:35:32 AM11/12/14
to mnemosyne-...@googlegroups.com
Hi Peter,

Thanks for your quick response! :)

It seems that an unfortunate consequence of this is that
the present research dataset can’t yield interesting results
on users’ memory performance based on time of day. That’s sad,
because I think this is one area in which I think a lot of
excellent research could be conducted in the future!

I wonder if it would be possible to:

1. Change Mnemosyne so it uploads local time rather than UTC
to the research server. (If timezone information could also
be uploaded, that could also make for an interesting research
project sometime down the track.)

2. Archive the current research database and begin a new one
afresh using the local time information instead (otherwise
the statistics will be skewed significantly based on the
old UTC time data), requiring users to upgrade before their
log data will be uploaded.

Thanks again!


Tom.

Peter Bienstman

unread,
Nov 12, 2014, 2:44:09 AM11/12/14
to mnemosyne-...@googlegroups.com
Hi,

In hindsight, that was indeed not such a good decision. I think the best way to rectify this without invalidating the old data is simply to also log the timezone of the users. Once we know the timezone of a user, we can also reinterpret the old logs.

Cheers,

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of larsen....@gmail.com
> Sent: 12 November 2014 08:36
> To: mnemosyne-...@googlegroups.com
> Subject: Re: [mnemosyne-proj-users] Timestamp in local or UTC time?
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/6a7196f6-33ce-
> 41f6-bb1a-b41285979324%40googlegroups.com.

larsen....@gmail.com

unread,
Nov 12, 2014, 2:53:40 AM11/12/14
to mnemosyne-...@googlegroups.com
Hi Peter,

That sounds like the best course of action
(assuming that no really prolific user has
moved timezones in the past).

Thanks very much! :)


Tom.
Reply all
Reply to author
Forward
0 new messages