calendar.setTimeInMillis(TimeUnit.SECONDS.toMillis(time));
return DateFormat.format("dd.MM.yyyy HH:mm", calendar).toString();
}
public static long getCurrentTimestamp() {
return TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis());
<BUG>}
public static int dp2Px(Context context, int dp) {
float density = context.getResources().getDisplayMetrics().density;
return (int) (dp * density + 0.5f);</BUG>
}

calendar.setTimeInMillis(TimeUnit.SECONDS.toMillis(time));
return DateFormat.format("dd.MM.yyyy", calendar).toString();
}
public static String getDateTime(long time) {
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(TimeUnit.SECONDS.toMillis(time));
return DateFormat.format("dd.MM.yyyy HH:mm", calendar).toString();
}
public static long getCurrentTimestamp() {
return TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis());
}
