Please try this one
select
cast(1256 as char(4)) as numb,
substring(numb from 1 for 2)||':'||substring(numb from 3 for 2)||':00' as convertedstring,
cast (convertedstring as time) as goodtimes
↧