CF Worker determine time of day/timezone?

I have CF worker for full page HTML caching for guest visitors for my forums. But forums have an off peak and peak member/posting activity time. During off peak not many new posts/threads are created while during peak more new user generated content is made.

So I was wondering can CF workers determine the time of day (hour) and timezone a request is made ? So I could set a longer cache ttl for off peak times i.e. 12am to 6 am PST and set a shorter cache ttl time for peak hour times i.e. 6am to 8pm PST ?

1 Like

looks like @signalnerve already covered that at from Do a time based redirect in cloudflare workers? :sunglasses: