我寫這收集所有的元信息(GPS:緯度,經度和日期)Java程序從圖像(使用庫的元數據,提取-2.6.4),我越來越喜歡約會「日期如何從GPSDirectory獲取日期?
GpsDirectory gpsDir = (GpsDirectory) metadata.getDirectory(GpsDirectory.class);
GpsDescriptor gpsDesc = new GpsDescriptor(gpsDir);
System.out.println("Date : " + gpsDesc.getGpsTimeStampDescription());
:UTC時間15:45:26「。是否有任何方法可以在標準格式中給出日期,如yyyy.MM.dd G'at'HH:mm:ss z?
我試圖用
gpsDir.getDate(GpsDirectory.TAG_GPS_DATE_STAMP), but it returns null
你能提供一個鏈接到元數據提取器庫的Javadoc嗎? – hd1 2013-03-14 18:21:58