Newbie - routing by time of day

Apologies if this is a trivial question…

I have just started looking at Asterisk and the documentation and I am trying to confirm that I can achieve the following scenarios:

SIP Phone (or Analouge behind adaptor) - Asterisk - IAX and PSTN trunks

Can outbound calls can be routed to either IAX or PSTN dependent on number called and time of day?

Can this support multiple IAX providers and PSTNs with billing access codes (e.g. the PSTN number is prefixed to select billing provider)?

I am trying to build a system that doesn’t require the user to be aware of the time of day or destination but will select the cheapest route.

TIA Darren.