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

d8

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d8 - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json

@@ -18,3 +18,3 @@ {

},
"version" : "0.0.1"
"version" : "0.0.2"
}

@@ -48,4 +48,9 @@ # d8.js

#### isLeapYear( year:String ):Boolean
Returns true if the passed **4 digit** year is a leap year.
#### setLeapYear( date:Date ):Void
Sets the inlcuded locale's February day count to the correct number of days, based on whether or not the date is a leap year or not.
#### toDate( date:String, format:String ):Date
Takes a date String and a format String based on the **Date formatting and parsing options** described below and returns a – hopefully – correct and valid Date.

@@ -57,2 +62,4 @@ ### Static properties

**Don't change this unless you know what you are doing!**
#### formats

@@ -71,18 +78,55 @@ An Object containing some default date formats:

#### GMTOffset( colon:Boolean ):String
Returns the Date instances offset from GMT.
#### ISODay():Number
Returns the ISO day of the week.
#### ISODaysInYear():Number
Returns the ISO number of days in the year.
#### ISOFirstMondayOfYear():Date
Returns the ISO first Monday of the year.
#### ISOWeek():Number
Returns the ISO week of the year
#### ISOWeeksInYear():Number
Returns the number of weeks in the ISO year.
#### adjust( interval:Object|String, value:Number ):Date
Adjusts the Date based on the passed interval, by the passed numeric value.
**Note:** The method also accepts a single Object param where each key is the interval and each value is the number to adjust the Date by.
**Valid intervals are:** year, month, day, hr, min, sec, ms.
#### between( date_lower:Date, date_higher:Date ):Boolean
Checks to see if the Date instance is in between the two passed Dates.
#### clearTime():Date
Clears the time from the Date instance.
#### clone():Date
Returns a clone of the current Date.
#### dayOfYear():Number
Returns the zero based day of the year.
#### firstOfTheMonth():Date
Returns a Date instance of the first day of this Date instance's month.
#### format( format:String ):String
Returns a string representation of the Date instance, based on the passed format. See the **Date formatting and parsing options** below.
#### isDST():Boolean
Returns true if the Date instance is within daylight savings time.
#### isLeapYear():Boolean
Returns true if the Date instance is a leap year.
#### lastOfTheMonth():Date
Returns a Date instance of the last day of this Date instance's month.
#### timezone():String
Returns the JavaScript engine's Date.prototype.toString() timezone abbreviation.

@@ -89,0 +133,0 @@ ## Date formatting and parsing options

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