public static DateTime getCurrentTime ( String timezone ) { String tz = StringUtils . defaultString ( timezone , ConfigurationKeys . DEFAULT_SOURCE_TIMEZONE ) ; DateTimeZone dateTimeZone = getTimeZone ( tz ) ; DateTime currentTime = new DateTime ( dateTimeZone ) ; return currentTime ; }
Get current time - joda