Changeset 8243 in josm for trunk/src/com/drew/metadata/exif/GpsDescriptor.java
- Timestamp:
- 2015-04-21T00:42:50+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/GpsDescriptor.java
r8132 r8243 109 109 { 110 110 // time in hour, min, sec 111 int[] timeComponents = _directory.getIntArray(TAG_TIME_STAMP); 112 return timeComponents == null ? null : String.format("%d:%d:%d UTC", timeComponents[0], timeComponents[1], timeComponents[2]); 111 Rational[] timeComponents = _directory.getRationalArray(TAG_TIME_STAMP); 112 DecimalFormat df = new DecimalFormat("00.00"); 113 return timeComponents == null 114 ? null 115 : String.format("%02d:%02d:%s UTC", 116 timeComponents[0].intValue(), 117 timeComponents[1].intValue(), 118 df.format(timeComponents[2].doubleValue())); 113 119 } 114 120
Note:
See TracChangeset
for help on using the changeset viewer.