getWeekOfYear

open fun getWeekOfYear(time: String): Int

Return the number for indicating the week number within the current year.

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

Return

the number for indicating the week number within the current year

Parameters

time

The formatted time string.

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

Return the number for indicating the week number within the current year.

Return

the number for indicating the week number within the current year

Parameters

time

The formatted time string.

format

The format.

open fun getWeekOfYear(date: Date): Int

Return the number for indicating the week number within the current year.

Return

the number for indicating the week number within the current year

Parameters

date

The date.

open fun getWeekOfYear(millis: Long): Int

Return the number for indicating the week number within the current year.

Return

the number for indicating the week number within the current year

Parameters

millis

The milliseconds.