added dateTimeToSeconds and linearReg