New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bakedoatmeal/date-lib

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bakedoatmeal/date-lib

A simple library including getters and formatters for Dates

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

A simple library including getters and formatters for Dates

d.year

Returns the full year ex: 1994

d.yr

Returns the shortened year ex: 94

d.month

Returns the spelled out month ex: 'September'

d.mon

Returns a shorthand for the month ex: 'Sep'

d.day

Returns the day of the week spelled out ex: 'Monday'

d.dy

Returns the shorthand for the day of the week ex: 'Mon'

d.date

Returns the date ex: 1

d.hours

Returns the hours

d.mins

Returns the minutes

d.secs

Returns the seconds

d.format(mask)

Returns a formatted date string based on the provided mask string

d.when()

Returns the number of days, months or years from current date

FAQs

Package last updated on 07 Sep 2022

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