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

Make duration its own primitive #978

Merged
merged 1 commit into from Nov 17, 2019

Conversation

sophiajt
Copy link
Member

This adds duration as a primitive, making it a first-class value. the same where accessed < 1d currently works, but now over date-duration comparison.

You can also see a duration as a value, for example doing:

> echo 1d
━━━━━━━━━━━━
 <value> 
────────────
 86400 secs 
━━━━━━━━━━━━

Fixes #971

@gitpod-io
Copy link

gitpod-io bot commented Nov 17, 2019

@sophiajt sophiajt merged commit 9c41f58 into nushell:master Nov 17, 2019
@sophiajt sophiajt deleted the duration_primitive branch November 17, 2019 06:07
bobhy pushed a commit to bobhy/nushell that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add duration as a first-class value
1 participant