Skip to content

Trouble computing moon phases #74

@westy92

Description

@westy92

Hi 👋

I'm trying to calculate the various moon phases during a particular lunation number. However, the results don't make sense. 😕

let lunation_num = moon_phase::get_lunation_number(1735711200); // result: 309. 1 Jan 2025 00:00:00 -0600 
let new_moon = moon_phase::get_new_moon(lunation_num);          // 1735597609, 30 Dec 2024 16:26:49 -0600
let first_q = moon_phase::get_first_quarter_moon(lunation_num); // 1735617118, 30 Dec 2024 21:51:58 -0600
let full_moon = moon_phase::get_full_moon(lunation_num);        // 1735597522, 30 Dec 2024 16:25:22 -0600
let last_q = moon_phase::get_last_quarter_moon(lunation_num);   // 1735616667, 30 Dec 2024 21:44:27 -0600

I expected each phase to be at least a few days apart, but instead, they are a few hours apart. Am I doing something wrong here, or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions