Time Utils
class TimeUtils
Content copied to clipboard
Functions
date2Millis
Link copied to clipboard
date2String
Link copied to clipboard
getChineseWeek
Link copied to clipboard
getChineseZodiac
Link copied to clipboard
getDate
Link copied to clipboard
getDateByNow
Link copied to clipboard
getFitTimeSpan
Link copied to clipboard
open fun getFitTimeSpan(time1: String, time2: String, precision: Int): String
Content copied to clipboard
open fun getFitTimeSpan(date1: Date, date2: Date, precision: Int): String
Content copied to clipboard
open fun getFitTimeSpan(millis1: Long, millis2: Long, precision: Int): String
Content copied to clipboard
open fun getFitTimeSpan(time1: String, time2: String, format: DateFormat, precision: Int): String
Content copied to clipboard
getFitTimeSpanByNow
Link copied to clipboard
open fun getFitTimeSpanByNow(time: String, format: DateFormat, precision: Int): String
Content copied to clipboard
getFriendlyTimeSpanByNow
Link copied to clipboard
open fun getFriendlyTimeSpanByNow(time: String, format: DateFormat): String
Content copied to clipboard
getHourLong
Link copied to clipboard
getHourNumber
Link copied to clipboard
getMillis
Link copied to clipboard
getMillisByNow
Link copied to clipboard
getNowDate
Link copied to clipboard
getNowMills
Link copied to clipboard
getNowString
Link copied to clipboard
getString
Link copied to clipboard
getStringByNow
Link copied to clipboard
open fun getStringByNow(timeSpan: Long, format: DateFormat, unit: Int): String
Content copied to clipboard
getTimeSpan
Link copied to clipboard
open fun getTimeSpan(time1: String, time2: String, format: DateFormat, unit: Int): Long
Content copied to clipboard
getTimeSpanByNow
Link copied to clipboard
open fun getTimeSpanByNow(time: String, format: DateFormat, unit: Int): Long
Content copied to clipboard
getUSWeek
Link copied to clipboard
getWeekIndex
Link copied to clipboard
getWeekOfMonth
Link copied to clipboard
getWeekOfYear
Link copied to clipboard
getZodiac
Link copied to clipboard
isLeapYear
Link copied to clipboard
isToday
Link copied to clipboard
millis2Date
Link copied to clipboard
millis2String
Link copied to clipboard
string2Date
Link copied to clipboard
string2Millis
Link copied to clipboard