Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow dropping of fractional time parts and relax a bit parsing syntax #51
Comments
|
All good. Plus flexibility on input ie recognise
and so on. |
|
We allow To get the ball rolling for an exhaustive specification when the input is
Hopefully this makes the handling of |
|
That reads well. Some quick comments:
Yay to having specs. I feel like a grown-up now. |
|
0: absolutely, and I think we already have it working right now: nanotime(12345L)
[1] "1970-01-01T00:00:00.000012345+00:00"For output, unconditional long displays would occur if the user specifies a format. But alternatively, we could have another environment variable that controls this feature. Still think it should be on by default, as it really helps visually and the hope is that |
It would be nice to allow, amongst others:
In output, the fractional time and parts could be omitted when no element of the vector to be printed has fractional part. Again this would be like
POSIXct.Finally, in output, the default prints out the time zone offset, but the timezone abbreviation is shorter and would be the same as
POSIXct:This saves one to two characters per printout.
Finally, besides the missing 'T', there could also be forgiveness for using '/' or '' instead of '-' as date separator?