03-27-2015 04:18 AM
I want to adjust a time channel with 8 hours. Adjust the starting time from 03/16/2015 17:18:31 to 03/16/2015 09:18:31 (mm/dd/yyyy hh:mm:ss). Is there an easy way (as analysis or script)?
Solved! Go to Solution.
03-27-2015 05:46 AM
Either use a script like this
Option Explicit data.Root.Clear dim chObj : set chObj = data.root.ChannelGroups.Add("group").Channels.Add("time",DataTypeChnDate) chObj.Values(1) = CDate("03/16/2015 17:18:31") dim chNr : chNr = chObj.Properties("number").Value dim offsetInSeconds : offsetInSeconds = 8 * 60 * 60 Call ChnOffset(chNr,chNr,"free offset")
or use
Analysis.Basic Mathematics.Offset Corrections
and add offset in seconds as "Add any offset"