Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/bobg/dates

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bobg/dates

  • v0.3.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

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.

FAQs

Package last updated on 03 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc