insomnia-plugin-datetimeaddition

1.0.1 • Public • Published

DateTime Add

based on SebBrookfield/DateAdd

DateTime Add is an Insomnia plugin that allows you to take the current date, add years/months/days/hours/minutes/seconds, and output in a specific format. This plugin uses the momentjs library for manipulating the dates.

image

image

Parameters

The parameters are pretty self explanatory. The numeric parameters can also be negative.

Seconds to add

The number of seconds to add to the current time.

Minutes to add

The number of minutes to add to the current time.

Hours to add

The number of hours to add to the current time.

Days to add

The number of days to add to the current date.

Months to add

The number of months to add to the current date.

Years to add

The number of years to add to the current date.

Format

This is the format string for outputting the date. You can read more about formatting momentjs dates in the following documentation. https://momentjs.com/docs/#/displaying

Package Sidebar

Install

npm i insomnia-plugin-datetimeaddition

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

33.4 kB

Total Files

6

Last publish

Collaborators

  • dimns