Skip to content

refactor: cleanup and simplification of time interface#203

Merged
embray merged 1 commit into
asdf-format:mainfrom
embray:time-fixes
Jun 23, 2026
Merged

refactor: cleanup and simplification of time interface#203
embray merged 1 commit into
asdf-format:mainfrom
embray:time-fixes

Conversation

@embray

@embray embray commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Some things I noticed while working on the documentation that made me scratch my head once trying to think how to explain to users; decided to simplify a bit.

  • Rename asdf_time_base_format_t to just asdf_time_format_t
  • The is_base_format flag is not used anywhere for anything right now so get rid of it; not exactly sure what Joe's plan was for extended formats but it's not used yet. Checking is_base_format is also a question of just checking asdf_format_t > ASDF_FORMAT_RESERVED1
  • Shouldn't have functions declared ASDF_LOCAL in public headers; only ASDF_EXPORT -- left a simpler asdf_time_parse function that can take a partially initialized asdf_time_t and fill in the time info.
  • Misc other code cleanup.

Some things I noticed while working on the documentation that made me
scratch my head once trying to think how to explain to users; decided to
simplify a bit.

- Rename asdf_time_base_format_t to just asdf_time_format_t
- The is_base_format flag is not used anywhere for anything right now
  so get rid of it; not exactly sure what Joe's plan was for extended
  formats but it's not used yet.  Checking is_base_format is also a
  question of just checking asdf_format_t > ASDF_FORMAT_RESERVED1
- Shouldn't have functions declared ASDF_LOCAL in public headers; only
  ASDF_EXPORT -- left a simpler asdf_time_parse function that can take
  a partially initialized asdf_time_t and fill in the time info.
- Misc other code cleanup.
@embray embray added the refactoring Changes to code structure or APIs label Jun 23, 2026
@embray embray merged commit 2dc9e3c into asdf-format:main Jun 23, 2026
12 checks passed
@embray embray deleted the time-fixes branch June 23, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Changes to code structure or APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant