added SetDatetime and SetSamplingRate