Hi,
dataTaker does not have automatic detection on daylight saving however it is possible to introduce time manipulation through the code.
This is the code Jairus Pascoe from Metro Train which address daylight saving in Melbourne. Daylight saving in Melbourne start on 2 am the first Sunday of October and end on 2 am the first Sunday of April.
4ST(=11CV,W)
20SV(=12CV,W)
21SV(=13CV,W)
14CV(W)=11CV-12CV+50
15CV(W)=14CV+1
99CV(W)=0
'non daylight saving
IF(13CV==4)AND IF(14CV<50){99CV=0}
IF(13CV>4)AND IF(13CV<10){99CV=0}
IF(13CV==10)AND IF(15CV>50){99CV=0}
'daylight saving
IF(13CV==4)AND IF(15CV>50){99CV=1}
IF(13CV<4){99CV=1}
IF(13CV>10){99CV=1}
IF(13CV==10)AND IF(14CV<50){99CV=1}
'conditional statement
IF(99CV==0){PROFILE LOCALE TIME_ZONE=10H}
IF(99CV==1){PROFILE LOCALE TIME_ZONE=11H}
The code does not specifically target the hour.
Best regards,
Rudy Gunawan
Hi,
dataTaker does not have automatic detection on daylight saving however it is possible to introduce time manipulation through the code.
This is the code Jairus Pascoe from Metro Train which address daylight saving in Melbourne. Daylight saving in Melbourne start on 2 am the first Sunday of October and end on 2 am the first Sunday of April.
````
4ST(=11CV,W)
20SV(=12CV,W)
21SV(=13CV,W)
14CV(W)=11CV-12CV+50
15CV(W)=14CV+1
99CV(W)=0
'non daylight saving
IF(13CV==4)AND IF(14CV<50){99CV=0}
IF(13CV>4)AND IF(13CV<10){99CV=0}
IF(13CV==10)AND IF(15CV>50){99CV=0}
'daylight saving
IF(13CV==4)AND IF(15CV>50){99CV=1}
IF(13CV<4){99CV=1}
IF(13CV>10){99CV=1}
IF(13CV==10)AND IF(14CV<50){99CV=1}
'conditional statement
IF(99CV==0){PROFILE LOCALE TIME_ZONE=10H}
IF(99CV==1){PROFILE LOCALE TIME_ZONE=11H}
````
The code does not specifically target the hour.
Best regards,
Rudy Gunawan