Skip to content

examples#4

Merged
VPRamon merged 2 commits intomainfrom
examples
Mar 8, 2026
Merged

examples#4
VPRamon merged 2 commits intomainfrom
examples

Conversation

@VPRamon
Copy link
Member

@VPRamon VPRamon commented Mar 8, 2026

This pull request adds a comprehensive example program to demonstrate the usage and conversion between all supported time-scale types in the tempoch_cpp library. It updates the build system to include this new example and ensures it is properly linked and configured.

Examples and Documentation:

  • Added a new example source file examples/timescales.cpp that demonstrates the creation, conversion, and arithmetic of all major time-scale types (JD, MJD, TDB, TT, TAI, TCG, TCB, GPS, UT, JDE, UnixTime). The example includes detailed output and documentation for educational and verification purposes.

Build System Updates:

  • Updated CMakeLists.txt to add a new executable target timescales for the new example, ensuring it is linked with tempoch_cpp and properly sets RPATH if needed.
  • Minor wording fix in the comments for the examples section in CMakeLists.txt (changed "Example" to "Examples").

@VPRamon VPRamon self-assigned this Mar 8, 2026
@VPRamon VPRamon merged commit 05a43c7 into main Mar 8, 2026
3 checks passed
@VPRamon VPRamon deleted the examples branch March 8, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant