Skip to content
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

Dates #32

Open
blippy opened this issue Nov 1, 2017 · 1 comment
Open

Dates #32

blippy opened this issue Nov 1, 2017 · 1 comment
Labels

Comments

@blippy
Copy link
Owner

blippy commented Nov 1, 2017

Jude DaShiell wrote:

Is neoleo capable when handling dates? If so, what entry format is used to make them presentable and so neoleo recognizes them as dates? If I try doing numerology with neoleo some date math would be involved sooner or later.

@blippy
Copy link
Owner Author

blippy commented Nov 1, 2017

Your best bet may be to enter text as a string, e.g. "12 Oct 2017". The format you adopt is very flexible. You can convert that into a number using get_date(), and back into a string again using ctime(), or perhaps use strftime() for a more flexible output. I've given an example in dates.oleo. You can download the raw form of the file and experiment further.

Also, check out section 14.7 of the manual, which lists the date and time functions.

Let me know how you get on.

TODO : incorporate this info in the manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant