Skip to content

Epoch and Duration should have a min and max function #164

Closed
@ChristopherRabotin

Description

@ChristopherRabotin

Currently if one wants the epoch before or after another epoch, the logic must be done manually:

            let start_epoch = if ephem1.start_epoch() < ephem2.start_epoch() {
                ephem2.start_epoch()
            } else {
                ephem1.start_epoch()
            };

This issue should allow for the following:

let start_epoch = ephem1.start_epoch().min(ephem2.start_epoch());

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions