MCPcopy Create free account
hub / github.com/MenoData/Time4J / getDayOfWeek

Method getDayOfWeek

base/src/main/java/net/time4j/Weekmodel.java:916–920  ·  view source on GitHub ↗

Ermittelt den Wochentag. @param utcDays count of days relative to [1972-01-01] @return day of week as enum

(long utcDays)

Source from the content-addressed store, hash-verified

914 * @return day of week as enum
915 */
916 static Weekday getDayOfWeek(long utcDays) {
917
918 return Weekday.valueOf(MathUtils.floorModulo(utcDays + 5, 7) + 1);
919
920 }
921
922 /**
923 * @serialData Uses <a href="../../serialized-form.html#net.time4j.SPX">

Callers 6

transformMethod · 0.95
getValueMethod · 0.45
getMinimumMethod · 0.45
getMaximumMethod · 0.45
withValueMethod · 0.45
getWeekMethod · 0.45

Calls 2

valueOfMethod · 0.95
floorModuloMethod · 0.95

Tested by

no test coverage detected