dates

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 7 Imported by: 0

README

Dates

This is dates, a command-line tool for doing date arithmetic.

Installation

go install github.com/bobg/dates@latest

Usage

In all of the following cases, a date argument can be the string today to mean today’s date.

dates add DATE N

Show the date resulting from adding N dates to the given DATE. N can be negative.

dates delta DATE1 DATE2

Show the number of days from DATE1 to DATE2. The result is positive if DATE1 is before DATE2 and negative if DATE1 is after DATE2.

dates since DATE

Show the number of days since DATE. This is the same as dates delta DATE today.

dates until DATE

Show the number of days until DATE. This is the same as dates delta today DATE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL