getWeekIndex

open fun getWeekIndex(time: String): Int

Return the number for indicating the day of the week.

The pattern is {@code yyyy-MM-dd HH:mm:ss}.

Return

the number for indicating the day of the week

See also

java.util.Calendar

Calendar#SATURDAY

Parameters

time

The formatted time string.

open fun getWeekIndex(time: String, format: DateFormat): Int

Return the number for indicating the day of the week.

Return

the number for indicating the day of the week

See also

java.util.Calendar

Calendar#SATURDAY

Parameters

time

The formatted time string.

format

The format.

open fun getWeekIndex(date: Date): Int

Return the number for indicating the day of the week.

Return

the number for indicating the day of the week

See also

java.util.Calendar

Calendar#SATURDAY

Parameters

date

The date.

open fun getWeekIndex(millis: Long): Int

Return the number for indicating the day of the week.

Return

the number for indicating the day of the week

See also

java.util.Calendar

Calendar#SATURDAY

Parameters

millis

The milliseconds.