DateUtils

Class of android.text.format · DateUtils.java · Android's reference

public class DateUtils

Time spans as words.

Fields

public static final long SECOND_IN_MILLIS = 1000 source
public static final long MINUTE_IN_MILLIS = 60000 source
public static final long HOUR_IN_MILLIS = 3600000 source
public static final long DAY_IN_MILLIS = 86400000 source
public static final long WEEK_IN_MILLIS = 604800000 source

Methods

public static boolean isToday(long when) source
public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) source
public static CharSequence getRelativeTimeSpanString(long startTime) source
public static String formatElapsedTime(long elapsedSeconds) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.