https://github.com/tpkn/seqd
Just like seq, but for date.
https://github.com/tpkn/seqd
cli date go range seq seqd
Last synced: 4 days ago
JSON representation
Just like seq, but for date.
- Host: GitHub
- URL: https://github.com/tpkn/seqd
- Owner: tpkn
- License: mit
- Created: 2025-09-25T14:12:06.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-04-13T20:47:14.000Z (about 2 months ago)
- Last Synced: 2026-04-13T22:34:47.098Z (about 2 months ago)
- Topics: cli, date, go, range, seq, seqd
- Language: Go
- Homepage:
- Size: 244 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Just like seq, but for date.
## Install
```shell
curl --silent -L https://raw.githubusercontent.com/tpkn/seqd/main/install.sh | sudo bash
```
## Usage
```
seqd [ -options ]
```
## Options
```
Can also be a "eom" (end of month) or "eoy" (end of year)
-Y Step by years (reversed order: -Yr)
-M Step by months (reversed order: -Mr)
-D Step by days (reversed order: -Dr)
-h Step by hours (reversed order: -hr)
-m Step by minutes (reversed order: -mr)
-s Step by seconds (reversed order: -sr)
--help Help
--version Version
```
## Examples
By days
```shell
while read day; do
echo $day
done <<< "$(seqd -D "2024-02-02" "2024-03-01")"
```
By days (reversed order)
```shell
while read day; do
echo $day
done <<< "$(seqd -Dr "2024-02-02" "2024-03-01")"
```
By hours
```shell
while read date_time; do
day=$(date -d "$date_time" '+%F')
hour=$(date -d "$date_time" '+%H')
echo "$day -> $hour"
done <<< "$(seqd -h "2024-02-02 12:00:00" "2024-03-01 13:00:00")"
```