All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.darwinsys.graphics.PhotoUtils Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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("-",":");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy