sim_wday() returns the weekday of a sim_datetime. It's crucial to use the same origin_date for
sim_wday() than the origin_date that was used to generate the sim_datetime.
sim_wday() uses the base R format(x, "%u") function.
Usage
sim_wday(sim_datetime, origin_date)
Arguments
sim_datetime
A sim_datetime (integer representing the passed seconds since origin_date)
origin_date
A datetime (POSIXt)
Value
A character, giving the weekday number ("1" = Monday, "2" = Tuesday, ..., "7" = Sunday)