On 7/1/19 7:59 AM, Claude Frantz wrote:

Just as an example of code extract in perl:

if ($line =~ m/^(\d{4})-([A-Z][a-z]{2})-(\d{2})\b/ ) {
    $day = $3 ;
    $month_alpha = $2 ;
    $year = $1 ;
}
elsif ($line =~ m/^(\d\d)(\d\d)(\d\d)_\d{6}\b/ ) {
    $day = $3 ;
    $month_num = $2 ;
    $year = 2000 + $1 ;
}
elsif ($line =~ m/^(\d{4})-(\d\d)-(\d\d)\b/ ) {
    $day = $3 ;
    $month_num = $2 ;
    $year = $1 ;
    }

I have not tested it, I hope there is no error. This allow to decode the 3 formats of ALL.TXT about which ones I remember about. Please note that the month can be numeric or alpha. If alpha, you have to convert to numeric, if you want to compare to a numeric value. Please note also, that the mode switching was an extra line in previous formats.

Best wishes,
Claude (DJ0OT)


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to