-
Notifications
You must be signed in to change notification settings - Fork 110
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
help texts for sys "date"
and sys "time"
are swapped
#133
Comments
As a side note: I am somewhat skeptical whether the textual format is particularly useful in a language primarily designed for calculations. My suggestion would be to have a system function to obtain the value of UnixNano, and perhaps also the option to convert back and forth between this timestamp and the date representation as a numeric vector. |
Well that's embarrassing, but of course trivial to fix. Having a date as a string seems helpful to me, but of course you also have the broken down time. Regardless, your suggestion of a single nanosecond counter sounds worthwhile. |
Then it would be nice to have this functionality for any date, not just the current date. I was thinking of something along these lines:
The numeric vector representation would also require a time zone offset. |
That's too many new functions. Date formatting is a black hole. I suggest instead that |
commit d6118f9 updates this. |
Perhaps encode and decode with a special-purpose LHS is the way to pack and unpack a time integer. |
I like that the base unit is now in seconds.
I would expect to find the documentation for "T" primarily in the help texts for A future extension could be adding time zone support, for example, |
I noticed that I intuitively wrote |
I went back and forth on where to document these features, but I agree now. I will put it in both places. |
The help texts for
sys "date"
andsys "time"
say:The actual outputs are exactly the other way around:
The text was updated successfully, but these errors were encountered: