Query editor
-- Aborean Protocol: Epoch Start DateWITH current_time_info AS (SELECT NOW() as now_timestamp),current_epoch_start AS (SELECTDATE_TRUNC('day', now_timestamp - INTERVAL '1' day *CASEWHEN DAY_OF_WEEK(now_timestamp) >= 4 THEN DAY_OF_WEEK(now_timestamp) - 4ELSE DAY_OF_WEEK(now_timestamp) + 3END) as epoch_start_timeFROM current_time_info)SELECTDATE_FORMAT(epoch_start_time, '%d-%m-%Y %H:%i:%s UTC') as valueFROM current_epoch_start