code: public static String getCurrentDateTime(final String localeLang, final String localeCountry, final String timezone, final String dateFormat) throws Exception {
          final DateTimeFormatter formatter = getDateTimeFormatter(localeLang, localeCountry, timezone, dateFormat);
          final DateTime datetime = DateTime.now();
          if (DateTimeUtils.isUnix(localeLang)) {
              Long unixSeconds = (long) Math.round(datetime.getMillis() / Constants.Miscellaneous.THOUSAND_MULTIPLIER);
              return unixSeconds.toString();
          }
          return formatter.print(datetime);
      }
docs: Check the current date and time, and returns a java DateAndTime formatted string of it.
  If locale is specified, it will return the date and time string based on the locale.
  Otherwise, default locale will be used.
  
  @param localeLang    The locale language for date and time string. If localeLang is 'unix' the
  localeCountry input is ignored and the result will be the current UNIX
  timestamp. Examples:  en, ja, unix.
  @param localeCountry The locale country for date and time string. For example, US or JP.
  If localeLang is not specified, this input will be ignored.
  @param timezone      The timezone you want the current datetime to be.
  Examples: GMT, GMT+1, PST
  @param dateFormat    The format of the output date/time.The Default date/time format is from the Java
  environment (which is dependent on the OS date/time format)
  @return Current date and time.