Category "human-readable"

Human readable date format in android java [duplicate]

For Example Date to convert is 2020-05-10 01:00:00 Current Date is 2020-05-20 01:00:00 It should show 10 days ago I'm using Calendar class Cal

iOS convert large numbers to smaller format

How can I convert all numbers that are more than 3 digits down to a 4 digit or less number? This is exactly what I mean: 10345 = 10.3k 10012 = 10k 123546 = 12

iOS convert large numbers to smaller format

How can I convert all numbers that are more than 3 digits down to a 4 digit or less number? This is exactly what I mean: 10345 = 10.3k 10012 = 10k 123546 = 12