–PST美国太平洋标准时间,GMT格林威治标准时间,NEW_TIME(t$idat,‘PST’,‘GMT’)得出idat在pst对应的gmt时间
select a.t$idat,NEW_TIME(t$idat,'PST','GMT'),
to_char(new_time(t$idat,'PST','GMT'),'HH:mi'),--时分
to_char(new_time(t$idat,'PST','GMT'),'yyyy'),--年份
to_char(new_time(t$idat,'PST','GMT'),'mm'),--月份
to_char(new_time(t$idat,'PST','GMT'),'dd'),--日
a.t$stat,a.* from baan.tcisli305202 a
where to_char(NEW_TIME(t$idat,'PST','GMT'),'yyyy')='2019'
and to_char(NEW_TIME(t$idat,'PST','GMT'),'mm')='12'