Skip to content

Conversation

@markwalkom
Copy link
Contributor

Added a few specific numeric date math examples in place of the text ones.

Added a few specific numeric date math examples in place of the text ones.
@markwalkom markwalkom added >docs General docs changes good first issue low hanging fruit labels Jun 14, 2017
`now+1h+1m`:: The current time plus one hour plus one minute, with ms resolution.
`now+1h/d`:: The current time plus one hour, rounded down to the nearest day.
`2015-01-01||+1M/d`:: `2015-01-01` plus one month, rounded down to the nearest day.
[options="header"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the definition list format instead of a table. Tables don't render terribly well in Docbook.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed that as it matched the index date math table above. Do you want me to update that one as well while I am at it?

[options="header"]
|======
| Expression | Resolves to
| `now+1h` | `2001-01-01 13:00:00`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with adding the resolved date, but I think we should keep the text explanation as that explains the logic that is applied, rather than having to make the user second guess it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was thinking that as well. I'll add it back :D

@dakrone
Copy link
Member

dakrone commented Aug 15, 2017

@markwalkom can you update this PR and then ping Clint again for another review?

@markwalkom
Copy link
Contributor Author

Sure thing, sorry for letting this one lapse!

@markwalkom
Copy link
Contributor Author

@dakrone I don't think I can have a horizontal labeled list with multiple columns, at least not based on what I can find in various guides/docs for asciidoc. So not sure I can update things as per Clint's comments.

@dakrone
Copy link
Member

dakrone commented Sep 7, 2017

@markwalkom I think you can still use the - thing :: description format that the list was previously in?

@markwalkom
Copy link
Contributor Author

markwalkom commented Sep 10, 2017 via email

@javanna
Copy link
Member

javanna commented Nov 6, 2017

@clintongormley could you help @markwalkom updating the PR so that it can be merged please?

@clintongormley
Copy link
Contributor

@markwalkom I don't think you need separate columns, just do it in the text:

`now+1h`::  `now` in milliseconds plus one hour.  Resolves to:  `2001-01-01 13:00:00`

@markwalkom
Copy link
Contributor Author

Thanks @clintongormley, how does that look now?

@cbuescher
Copy link
Member

@markwalkom @clintongormley just built the affected docs page, this looks good, should I merge this in on the 5.6+ branches?

@clintongormley
Copy link
Contributor

please do @cbuescher

@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
@colings86 colings86 deleted the markw/docs-datemath-examples branch May 27, 2020 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants