A question about applying daylight saving function

164 views
Skip to first unread message

Julia ZZ

unread,
Apr 5, 2021, 10:33:11 AM4/5/21
to R package GGIR
Hi all,

I wonder if anyone has the experience using is_this_a_dst_night function to test if the night that follows the input calendar date is a night with day saving time (DST) and on what hour the time moved. I have some data from Actigraph accelerometers. But the Actigraph accelerometers were worn past the night with day saving time (DST) (for example, We were at the EST timezone and daylight saving time 2020 ended at 2:00 AM on Nov 1st. We had some participant who wore it from Oct 25th to Nov 5th, which the wearing time crossed the daylight saving changing day). 

Can is_this_a_dst_night function solve this kind of questions? What would be the best solution to deal with the data like that?

Thanks,
Julia

Vincent van Hees

unread,
Apr 9, 2021, 4:42:58 AM4/9/21
to Julia ZZ, R package GGIR
That function is used by GGIR internally, as a user you should not have to worry about it.
So, if all goes well GGIR automatically takes in account DST.

In GGIR part 2 output you should see this in the fact that DST nights will results in 25 or 23 measurement hours in a day. Further, in the part 4 output you will notice that when sleep starts before DST and ends after DST it will one hour more or one hour less in sleep duration compared to what you would expect from the start and end clock time.

Did you encounter any data that gave doubt that this is correctly working?
If you did, then please let me know.

Thanks, Vincent

Dr. Vincent van Hees
Independent consultant

ACCELTING.png



‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "R package GGIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to RpackageGGIR...@googlegroups.com.

Julia ZZ

unread,
Jun 15, 2021, 1:33:37 PM6/15/21
to R package GGIR
Thank you so much for explaining it. It helps a lot.
Reply all
Reply to author
Forward
0 new messages