com.darwinsys.graphics.PhotoUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.graphics;
public class PhotoUtils {
public static String exifDateToIso(final String exifDateString) {
return exifDateString
.replace(' ', 'T')
.replaceFirst(":","-")
.replaceFirst(":","-");
}
public static String isoDateToExif(final String isoDateString) {
return isoDateString
.replace('T', ' ')
.replaceFirst("-",":")
.replaceFirst("-",":");
}
}