---
title: "org.shredzone.commons:commons-suncalc 3.0 Breaking Changes"
description: "What each org.shredzone.commons:commons-suncalc release removed, renamed or changed: 70 breaking changes in 2 versions on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/org.shredzone.commons:commons-suncalc
last_updated: 2026-12-04
---

# org.shredzone.commons:commons-suncalc breaking changes

org.shredzone.commons:commons-suncalc 3.0 (June 6, 2020) is its newest release with breaking changes, 41 of them. The first: Result rounding removed from the library in org.shredzone.commons:commons-suncalc 3.0. Every breaking API change we have recorded in org.shredzone.commons:commons-suncalc on Maven Central: 70 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.11`, released June 11, 2024. 

Its 3.0 release requires [Java 8](https://since.dev/calendar/eclipse-temurin/8.md) or later. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [2.0](#v-2-0) to [3.0](#v-3-0): 41 breaking changes in 1 version.

## org.shredzone.commons:commons-suncalc 3.0 breaking changes

org.shredzone.commons:commons-suncalc 3.0, released June 6, 2020: 41 breaking changes.

- **Removed**  

The library no longer rounds results. Users who relied on rounding must truncate the ZonedDateTime results themselves. [shredzone.org](https://shredzone.org/maven/commons-suncalc/migration.html)
- **Removed**  

suncalc 3.0 no longer supports Android versions below API level 26. Older Android apps must stay on suncalc v2. [github.com](https://github.com/shred/commons-suncalc/releases/tag/v3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonIllumination.getClosestPhase`  

MoonIllumination.getClosestPhase was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.getDistance`  

MoonPhase.getDistance was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.isMicroMoon`  

MoonPhase.isMicroMoon was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.isSuperMoon`  

MoonPhase.isSuperMoon was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.Parameters.truncatedTo`  

org.shredzone.commons.suncalc.MoonPhase.Parameters.truncatedTo was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.Phase.toPhase`  

org.shredzone.commons.suncalc.MoonPhase.Phase.toPhase was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.Phase.WANING_CRESCENT`  

org.shredzone.commons.suncalc.MoonPhase.Phase.WANING_CRESCENT was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.Phase.WANING_GIBBOUS`  

org.shredzone.commons.suncalc.MoonPhase.Phase.WANING_GIBBOUS was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.Phase.WAXING_CRESCENT`  

org.shredzone.commons.suncalc.MoonPhase.Phase.WAXING_CRESCENT was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPhase.Phase.WAXING_GIBBOUS`  

org.shredzone.commons.suncalc.MoonPhase.Phase.WAXING_GIBBOUS was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.MoonTimes.Parameters.truncatedTo`  

org.shredzone.commons.suncalc.MoonTimes.Parameters.truncatedTo was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.param.TimeResultParameter`  

org.shredzone.commons.suncalc.param.TimeResultParameter was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.Parameters.truncatedTo`  

org.shredzone.commons.suncalc.SunTimes.Parameters.truncatedTo was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.Twilight.NIGHT_HOUR`  

org.shredzone.commons.suncalc.SunTimes.Twilight.NIGHT_HOUR was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.BaseBuilder.clone`  

BaseBuilder.clone was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.BaseBuilder.createCalendar`  

BaseBuilder.createCalendar was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.BaseBuilder.getTruncatedTo`  

BaseBuilder.getTruncatedTo was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.BaseBuilder.truncatedTo`  

BaseBuilder.truncatedTo was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.JulianDate.getCalendar`  

JulianDate.getCalendar was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.JulianDate.getDate`  

JulianDate.getDate was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.JulianDate.getDateTruncated`  

JulianDate.getDateTruncated was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `org.shredzone.commons.suncalc.util.Pegasus.Function`  

org.shredzone.commons.suncalc.util.Pegasus.Function was removed in org.shredzone.commons:commons-suncalc 3.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Removed** `truncateTo`  

The truncateTo() method was removed. Use the truncation available on Java's ZonedDateTime instead. [github.com](https://github.com/shred/commons-suncalc/releases/tag/v3.0)
- **Behavior changed**  

suncalc 3.0 requires at least Java 8 or Android API level 26. Users on older runtimes must stay on suncalc v2. [github.com](https://github.com/shred/commons-suncalc/releases/tag/v3.0)
- **Behavior changed**  

All results are now ZonedDateTime instances carrying the timezone used, instead of the outdated Date and Calendar classes. Code reading those types must be updated. [shredzone.org](https://shredzone.org/maven/commons-suncalc/migration.html)
- **Behavior changed**  

Method signatures are unchanged, but the compiler may now report null dereferences that were not reported before. [github.com](https://github.com/shred/commons-suncalc/releases/tag/v3.0)
- **Signature changed** `org.shredzone.commons.suncalc.MoonPhase.getTime`  

Was java.util.Date getTime(); now java.time.ZonedDateTime getTime(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.MoonPhase.Parameters`  

Was static interface Parameters extends org.shredzone.commons.suncalc.param.GenericParameter\<org.shredzone.commons.suncalc.MoonPhase.Parameters>... [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.MoonTimes.getRise`  

Was java.util.Date getRise(); now java.time.ZonedDateTime getRise(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.MoonTimes.getSet`  

Was java.util.Date getSet(); now java.time.ZonedDateTime getSet(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.MoonTimes.Parameters`  

Was static interface Parameters extends org.shredzone.commons.suncalc.param.GenericParameter\<org.shredzone.commons.suncalc.MoonTimes.Parameters>... [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.SunTimes.getNadir`  

Was java.util.Date getNadir(); now java.time.ZonedDateTime getNadir(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.SunTimes.getNoon`  

Was java.util.Date getNoon(); now java.time.ZonedDateTime getNoon(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.SunTimes.getRise`  

Was java.util.Date getRise(); now java.time.ZonedDateTime getRise(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.SunTimes.getSet`  

Was java.util.Date getSet(); now java.time.ZonedDateTime getSet(). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.SunTimes.Parameters`  

Was static interface Parameters extends org.shredzone.commons.suncalc.param.GenericParameter\<org.shredzone.commons.suncalc.SunTimes.Parameters>, org.shredzone.commons.suncalc.param.LocationParameter\<org.shredzone.commons.suncalc.SunTimes.Pa... [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.util.BaseBuilder`  

Was class BaseBuilder\<T> implements org.shredzone.commons.suncalc.param.GenericParameter\<T>, org.shredzone.commons.suncalc.param.LocationParameter\<T>, org.shredzone.commons.suncalc.param.TimeParameter\<T>... [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.util.JulianDate.<init>`  

Was JulianDate(java.util.Calendar); now JulianDate(java.time.ZonedDateTime). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)
- **Signature changed** `org.shredzone.commons.suncalc.util.Pegasus.calculate`  

Was static Double calculate(double, double, double, org.shredzone.commons.suncalc.util.Pegasus.Function); now static Double calculate(double, double, double, java.util.function.Function\<Double, Double>). [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/3.0)

## org.shredzone.commons:commons-suncalc 2.0 breaking changes

org.shredzone.commons:commons-suncalc 2.0, released October 26, 2017: 29 breaking changes.

- **Removed** `org.shredzone.commons.suncalc.MoonIllumination.of`  

MoonIllumination.of was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.MoonPosition.of`  

MoonPosition.of was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.MoonTimes.of`  

MoonTimes.of was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.MoonTimes.ofUTC`  

MoonTimes.ofUTC was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.SunPosition.of`  

SunPosition.of was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.getTime`  

SunTimes.getTime was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.of`  

SunTimes.of was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.sunriseTime`  

SunTimes.sunriseTime was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.sunsetTime`  

SunTimes.sunsetTime was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)
- **Removed** `org.shredzone.commons.suncalc.SunTimes.Time.DAWN`  

org.shredzone.commons.suncalc.SunTimes.Time.DAWN was removed in org.shredzone.commons:commons-suncalc 2.0 [central.sonatype.com](https://central.sonatype.com/artifact/org.shredzone.commons/commons-suncalc/2.0)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
