I have a list of POSIX timestamps (tweet dataset). I want to select a specific week-long period (Friday noon - Friday noon) and count how many tweets were published between current system time (e.g., Wednesday, 16pm) and the end of the period.
This code obviously doesn't work because current time is always "higher" than history.
time.now=as.POSIXct(Sys.time())
sum(data$week==15 & data$time > time.now)
Is there a way to transform my data into a date-agnostic format that would start and end on Friday noon and only specified time and weekday?
Thanks!