-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the documentation #8
Conversation
|
||
The standard built-in Time formats that are available in CxoTime are: | ||
- In `CxoTime` the date '2001-01-01T00:00:00' is UTC by default, while in | ||
`DateTime` that is interpreted as TT by default. This is triggered by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with the doc but I don't remember having a conversation about these defaults.
Is it more confusing that there's a difference between Datetime and CxoTime in this regard (what is in there) or more confusing to have different default time systems depending on the string (what you'd have if you used the DateTime logic)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the DateTime
behavior (different time system depending on there being a T
or not) is very confusing for anyone but Arnold and people steeped in FITS. There might be some issue reading FITS times in CXC files, so that is a concern but only if we migrate core cron processing to CxoTime, which is not likely in the near future.
@@ -53,6 +53,8 @@ The key differences between |CxoTime| and DateTime_ are: | |||
- Conversely, starting with |CxoTime| one can add or subtract a TimeDelta_ or | |||
any quantity with time units. | |||
|
|||
- To get the current time replace ``DateTime()`` with ``CxoTime.now()`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
Based on user feedback and re-review by me, the docs needed some improvement.
Testing
Builds with sphinx with no errors and only warnings from the upstream astropy docstring.