/** * Get a DICOM format {@link java.lang.String String} time zone representation of the current * timezone. * * <p>E.g. from +0500 or -0700, the last component of a DateTime attribute value, or the value of * the DICOM attribute TimezoneOffsetFromUTC. * * @return a DICOM format {@link java.lang.String String} time zone representing the current time * zone on the current date */ public static String getCurrentTimeZone() { return getTimeZone(java.util.TimeZone.getDefault(), new java.util.Date()); }