dateutils icon indicating copy to clipboard operation
dateutils copied to clipboard

nifty command line date and time utilities; fast date calculations and conversion in the shell

Results 57 dateutils issues
Sort by recently updated
recently updated
newest added

I expected the second one to give a negative duration. ``` pi@pi0w:~/bin $ dateutils.ddiff 2024-09-26T18:00:00-05:00 2024-09-26T19:33:07-0500 -f '%Y years %m months %w weeks %d days %H hours %M minutes %S...

'datetest' cannot make sense of default 'date' output: $ datetest "$(date)" --eq "$(date)" dtest: cannot make sense of `Mon May 19 15:58:14 PDT 2025' using the given input formats

Many of these new airports added in commit 9b88e0b4b2c76f96d7194e487cbf092bbb23baf0 don't exist in the official listing: * https://www.iata.org/en/publications/directories/code-search?airport.search=ZZF * https://www.iata.org/en/publications/directories/code-search?airport.search=ZWK (Is this supposed to be [Suwalki Airport](https://pl.wikipedia.org/wiki/Lotnisko_Suwa%C5%82ki)? Polish Wikipedia says it...

By using the following sparql query on http://query.wikidata.org/ ```sparql SELECT DISTINCT ?item ?itemLabel ?iata WHERE { ?item wdt:P3872 ?patronage. ?item wdt:P238 ?iata. FILTER (?patronage > 500000). FILTER NOT EXISTS {?item...

Proposal: Extend `dateseq` to also generate a sequence of infinite dates, similar to the `yes` program which outputs a given string until interrupted. For example: ```bash dateseq --skip Saturday,Sunday 1970-01-01...

Say I supply a date to ddiff which fails to parse. ``` $ dateutils.ddiff "2024-10-dd" today ddiff: Error: reference DATE must be specified Usage: datediff [OPTION]... DATE/TIME [DATE/TIME]... Compute duration...

It is difficult to use datediff in a robust manner. For example, dates that are obviously invalid are still accepted: ``` $ dateutils.ddiff 2024-1x-k3 2024-01-02 2 ``` That happens even...