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

git-date

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-date

easily change the date of the previous git commit

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

git-date npm version code style: prettier

Easily change the date of the previous git commit Demonstration NPM

Installation

Make sure you have nodejs, npm and git installed first, and then run the following:

npm install git-date -g

Usage

git-date uses a hyphenated alias that allows you to run it as a native git command:

git date <date string>

Because git-date uses the full power of the date library provided by sugarjs, you can use a very large variety of commands to change the date. Below are some examples of what you could put into <date string>:

  • 2010
  • 2010-05
  • 2010-05-25
  • 2010.05.25
  • 2010/05/25
  • 05-25-2010
  • 05/25/2010
  • 05.25.2010
  • 25 May 2010
  • May 2010
  • Tuesday May 25th, 2010
  • the day after tomorrow
  • one day before yesterday
  • 2 days after monday
  • 2 weeks from monday
  • a second ago
  • 25 years from now
  • last wednesday
  • next friday
  • this week tuesday
  • monday of last week
  • May 25th of next year
  • the last day of March
  • the 23rd of last month
  • the beginning of this week
  • the end of next month
  • the last day of the year
  • last month
  • next year
  • 12pm
  • 12:30pm
  • 12:30:40
  • 12:30:40.299
  • 12:30:40.299+01:00
  • 2010-05-25T12:30:40.299Z
  • 2010-05-25T12:30:40.299+01:00

Keywords

FAQs

Package last updated on 14 Jan 2019

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