Package ch.ivyteam.util.date
Enum Class Weekday
- All Implemented Interfaces:
Serializable
,Comparable<Weekday>
,java.lang.constant.Constable
Days of the week
- API:
- This is a public API.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Weekday
Gets the weekday of the current daygetLocalizedName
(Locale locale) getName()
getShortLocalizedName
(Locale locale)
-
Enum Constant Details
-
SUNDAY
Sunday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
MONDAY
Monday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
TUESDAY
Tuesday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
WEDNESDAY
Wednesday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
THURSDAY
Thursday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
FRIDAY
Friday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
SATURDAY
Saturday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
-
Method Details
-
getName
- Returns:
- the English name of this weekday. E.g. Monday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getShortName
- Returns:
- the English short name of this weekday. E.g. Mo for Monday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getLocalizedName
- Parameters:
locale
- the locale used to localize the name, ifnull
Locale.getDefault()
is used.- Returns:
- the localized name of the weekday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getShortLocalizedName
- Parameters:
locale
- the locale used to localize the name, ifnull
Locale.getDefault()
is used.- Returns:
- the short localized name of the weekday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getCurrentWeekday
Gets the weekday of the current day- Returns:
- the current weekday. Never null.
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-