public static String formatDateTime ( Context context , ReadablePartial time , int flags ) { return android . text . format . DateUtils . formatDateTime ( context , toMillis ( time ) , flags | FORMAT_UTC ) ; }
Formats a date or a time according to the local conventions .