Skip to content

Commit

Permalink
starttime is already a POSIXlt object
Browse files Browse the repository at this point in the history
  • Loading branch information
l-k- committed Jan 27, 2024
1 parent 35434c4 commit 0062e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_starttime_weekday_meantemp_truncdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ get_starttime_weekday_meantemp_truncdata = function(monc, dformat, data,
}
#================================================
#assess weekday
wday = unclass(as.POSIXlt(starttime[1]))$wday #day of the week 0-6 and 0 is Sunday
wday = starttime$wday #day of the week 0-6 and 0 is Sunday
wday = wday + 1
weekdays = c("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
wdayname = weekdays[wday]
Expand Down

0 comments on commit 0062e0a

Please sign in to comment.