projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge in changes from BAA
[spider.git]
/
perl
/
DXUtil.pm
diff --git
a/perl/DXUtil.pm
b/perl/DXUtil.pm
index 07e3f4cb3bede190e80ae629259be3b8df7da646..868110ea36d6e7de266d4c7e28a704181787b276 100644
(file)
--- a/
perl/DXUtil.pm
+++ b/
perl/DXUtil.pm
@@
-72,7
+72,8
@@
sub cltounix
$date = "$1 $2 $3";
return 0 unless $time =~ /^([012]\d)([012345]\d)Z$/;
$time = "$1:$2 +0000";
- return str2time("$date $time");
+ my $r = str2time("$date $time");
+ return $r == -1 ? undef : $r;
}
# turn a latitude in degrees into a string