Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String getVideoDirection(Context context, String time) {
- String str = null;
- PeriodFormatter formatter = ISOPeriodFormat.standard();
- Period p = formatter.parsePeriod(o);
- int h = p.getHours();
- int m = p.getMinutes();
- int s = p.getSeconds();
- if (h != 0) {
- str = String.format("%d : %d : %d", h, m, s);
- } else {
- str = String.format("%d : %d", m, s);
- }
- return str;
- }
Advertisement
Add Comment
Please, Sign In to add comment