Skip to content

Add comparison between dates#966

Merged
sophiajt merged 1 commit intonushell:masterfrom
sophiajt:duration_comparison
Nov 16, 2019
Merged

Add comparison between dates#966
sophiajt merged 1 commit intonushell:masterfrom
sophiajt:duration_comparison

Conversation

@sophiajt
Copy link
Copy Markdown
Contributor

Adds the ability to compare dates with a duration of time. Some examples:

Files accessed less than a day ago:

ls | where accessed < 1d

File modified more than a week ago:

ls | where modified > 1w

The current shortform durations are supported:

  • s = seconds
  • m = minutes
  • h = hours
  • d = days
  • w = weeks
  • M = months
  • y = years

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Nov 16, 2019

@sophiajt sophiajt merged commit a3ffc4b into nushell:master Nov 16, 2019
@sophiajt sophiajt deleted the duration_comparison branch November 16, 2019 02:03
@andrasio
Copy link
Copy Markdown
Member

@jonathandturner 🔥 🔥 🔥 🔥

elferherrera pushed a commit to elferherrera/nushell that referenced this pull request Feb 7, 2022
kubouch pushed a commit that referenced this pull request Feb 7, 2022
bobhy pushed a commit to bobhy/nushell that referenced this pull request Oct 22, 2023
* Release notes for `0.83`

Please add your new features and breaking changes to the release notes
by opening PRs against the `release-notes-0.83` branch.

* Update 2023-07-25-nushell_0_83.md

* make the TODO blocks HTML comments

* add raw breaking changes

* add the full changelog so far

* add interesting PRs in some sections as raw tables

* write the *cratification* section

* write the *configuration* section

* write the *standard library* section

* refactor links in markdown variables

* write the *commands* section

* write the *language improvement* section

* add last merged PRs

* add missing breaking changes

related to nushell/nu_scripts#561

script from the PR run on
```nushell
"Tue Jun 27 19:11:46 2023 +0200" | into datetime
```

* add missing lines in the changelog

related to nushell/nu_scripts#561

script from the PR run on
```nushell
"Tue Jun 27 19:11:46 2023 +0200" | into datetime
```

* Update 2023-07-25-nushell_0_83.md

* Update 2023-07-25-nushell_0_83.md

* Update 2023-07-25-nushell_0_83.md

* Update 2023-07-25-nushell_0_83.md

---------

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
Co-authored-by: Jakub Žádník <kubouch@gmail.com>
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.

2 participants