-
Notifications
You must be signed in to change notification settings - Fork 784
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
Docstrings for Timestamp*Array. #988
Conversation
Codecov Report
@@ Coverage Diff @@
## master #988 +/- ##
==========================================
- Coverage 82.31% 82.31% -0.01%
==========================================
Files 168 168
Lines 48715 48763 +48
==========================================
+ Hits 40100 40137 +37
- Misses 8615 8626 +11
Continue to review full report at Codecov.
|
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.
Thank you @novemberkilo
There are no assertions here ... I am only trying to provide some hints on how to set these up. Is this ok?
I think it is ok, though adding some assertions as a way to illustrate how to access the values is valuable and common in Rust.
For example, perhaps you could add a call to assert_eq!(arr.value_as_datetime(), "1969-08-25T09:34:49+0:00")
to show how it could be accessed, in addition to the comments
Curious about how to document things that are currently under the feature flag chrono-tz -- specifically, the ability to specify Australia/Sydney as the timezone. Is this appropriate and if so, shall I just make reference to the flag needing to be enabled?
I think it is definitely cool to document things under feature flags with a note about what features are needed.
Finally in terms of documenting TimestampNanosecondArray
, TimetampMillisecondArray
, etc, I recommend leaving a link to the examples on TimestampSecondArray
with a note that the others work similarly rather than replicating the examples for each array
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.
Looks good -- thank you @novemberkilo
@novemberkilo this PR is still marked as a Draft. Do you think it is ready to merge or are there other things you plan to do? |
Ah sorry about that @alamb - now ready for review and merge. Thanks. |
Thanks again @novemberkilo |
* Docstrings for TimestampSecondArray. * fixup! Docstrings for TimestampSecondArray.
* Docstrings for TimestampSecondArray. * fixup! Docstrings for TimestampSecondArray. Co-authored-by: Navin <[email protected]>
Which issue does this PR close?
Re #302
@alamb thought I would add documentation for the
Timestamp*Array
types. Starting off withTimestampSecondArray
to get some quick feedback. A couple of specific questions for you:chrono-tz
-- specifically, the ability to specifyAustralia/Sydney
as the timezone. Is this appropriate and if so, shall I just make reference to the flag needing to be enabled?Thankyou.