clint2
Posts: 2 Joined: Thu Jan 19, 2006 5:01 pm
Post
by clint2 » Mon Nov 30, 2009 6:41 pm
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?
clint2
Posts: 2 Joined: Thu Jan 19, 2006 5:01 pm
Post
by clint2 » Thu Dec 03, 2009 12:41 pm
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!
mark
Site Admin
Posts: 5519 Joined: Tue Apr 25, 2000 6:56 pm
Post
by mark » Thu Dec 03, 2009 2:59 pm
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>