public class MicroblogUtils
extends java.lang.Object
Constructor and Description |
---|
MicroblogUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatAge(java.time.temporal.Temporal firstSeenDate)
Takes a
Temporal and calculates the time since then, and returns an
English-speaking human readable representation. |
static java.lang.String |
formatBandwidth(java.lang.Long bandwidth)
Returns a human-readable representation of a bandwidth.
|
public static java.lang.String formatAge(java.time.temporal.Temporal firstSeenDate)
Temporal
and calculates the time since then, and returns an
English-speaking human readable representation. As the delta magnitude
increases, accuracy decreases.
Output is either in years and days, days and hours, hours and minues or minutes and seconds.
public static java.lang.String formatBandwidth(java.lang.Long bandwidth)
bandwidth
- Information rate in bytes per second