Calendar.getWeekOfYear

Returns the week of the year that includes the specified Time.

class Calendar
const
uint
getWeekOfYear

Parameters

time const(Time)

A Time value.

rule WeekRule

A WeekRule value defining a calendar week.

firstDayOfWeek DayOfWeek

A DayOfWeek value representing the first day of the week.

Return Value

Type: uint

An integer representing the week of the year that includes the date in time.

Meta