com.emc.mongoose.api.common.env.DateUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-api-common Show documentation
Show all versions of mongoose-api-common Show documentation
Mongoose is a high-load storage performance testing tool
package com.emc.mongoose.api.common.env;
import com.emc.mongoose.api.common.Constants;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.TimeZone;
/**
Created by andrey on 18.11.16.
*/
public interface DateUtil {
TimeZone TZ_UTC = TimeZone.getTimeZone("UTC");
String PATTERN_ISO8601 = "yyyy-MM-dd'T'HH:mm:ss,SSS";
DateFormat FMT_DATE_ISO8601 = new SimpleDateFormat(PATTERN_ISO8601, Constants.LOCALE_DEFAULT) {{
setTimeZone(TZ_UTC);
}};
//e.g. Sun, 06 Nov 1994 08:49:37 GMT
String PATTERN_RFC1123 = "EEE, dd MMM yyyy HH:mm:ss zzz";
DateFormat FMT_DATE_RFC1123 = new SimpleDateFormat(PATTERN_RFC1123, Constants.LOCALE_DEFAULT) {{
setTimeZone(TZ_UTC);
}};
String PATTERN_METRICS_TABLE = "yyMMddHHmmss";
DateFormat FMT_DATE_METRICS_TABLE = new SimpleDateFormat(PATTERN_METRICS_TABLE, Constants.LOCALE_DEFAULT) {{
setTimeZone(TZ_UTC);
}};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy