error message 115 Ambiguous local time ... assuming daylight

clint2
Posts: 2
Joined: Thu Jan 19, 2006 5:01 pm

error message 115 Ambiguous local time ... assuming daylight

Post by clint2 »

I get these whenever using timport on records with dates that are inside the daylight savings time switch:

115 2009-11-30 14:00:29 ./csv2Texis:76: Ambiguous local time `2009-11-01 01:16:24': during daylight/standard time change; assuming daylight in the function parsetime

Whats the easiest way to suppress just these errors?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

error message 115 Ambiguous local time ... assuming daylight

Post by mark »

clint2
Posts: 2
Joined: Thu Jan 19, 2006 5:01 pm

error message 115 Ambiguous local time ... assuming daylight

Post by clint2 »

I was afriad that would be the answer. I did that, but now I have to manually print out the ones that I don't want to suppress.

Oh well its not that hard. Thanks for the answer!
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

error message 115 Ambiguous local time ... assuming daylight

Post by mark »

Here's a reference putmsg function which outputs the same as the built-in one. This can be used as the starting point for customizing the handler.

<a name=putmsg>
<local saveret=$ret savenext=$next saveloop=$loop open close>
<vxinfo htmlmode>
<if $ret eq 0><$open=""><$close=""><else><$open="<!-- "><$close=" -->"></if>
<loop $errnum $errscript $errline $errmsg $errfunc $errvfunc><!-- each msg -->
<fmt "%s%03d " $open $errnum>$errscript:$errline: $errmsg<!--nop-->
<if $errfunc ne "">
<send " ">in the function $errfunc<!--nop-->
</if>
<fmt "%s\n" $close>
</loop>
<$ret=$saveret><$next=$savenext><$loop=$saveloop>
</a>