diff --git a/src/main/java/osm/surveyor/matchtime/Restamp.java b/src/main/java/osm/surveyor/matchtime/Restamp.java index e9cd184..1534f59 100755 --- a/src/main/java/osm/surveyor/matchtime/Restamp.java +++ b/src/main/java/osm/surveyor/matchtime/Restamp.java @@ -72,12 +72,12 @@ * argv[5] = (option)変換済み画像ファイルの出力フォルダ.省略した場合は元画像を直接上書きする --> outputDir * @throws ImageReadException */ - public static void main(String[] argv) throws Exception + public static boolean main(String[] argv) throws Exception { if (argv.length < 5) { System.out.println("java osm.surveyor.matchtime.Restamp "); System.out.println("java osm.surveyor.matchtime.Restamp "); - return; + return false; } Path imgDir = Paths.get(argv[0]); @@ -105,6 +105,10 @@ throw obj.ex; } } + else { + return false; + } + return true; } Path imgDir; @@ -230,7 +234,7 @@ } } if (!jpgFiles.isEmpty()) { - DateFormat df2 = new SimpleDateFormat(TIME_PATTERN); + DateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); // imgDir内の画像ファイルを処理する long span = this.baseTime2.getTime() - this.baseTime1.getTime();