代码 Typescript版 /** * TimeSpan just like the class TimpSpan in C# ,represent the time difference * @class TimeSpan */ class TimeSpan { constructor(millionseconds: number) { this.totalMillionseconds = millionseconds; this.totalSeconds = millionseconds
select T21620.日期 as F21634, QUARTER('98-04-01') as quarter #返回日期是一年的第几个季度 -> 2 ,'98-04-01' or '1998-04-01' or '19980401' 都可以,但是只有年月没有日会报错,如'199804' from 竟企数据分析 T21620 说明:T21620.日期是201501这种格式,需要后边都加上日01 quarter才能识