…prototype of the Date instance. This is needed for the case where the user passes in a "regular" date instance but with other custom properties/functions up their prototype chain. This way we don't override the custom props. Also fixes a bug where the original Date instance wasn't being returned, and updated test case.
…nstance into one of our "extended" Date instances.
… one, even if NODE_MODULE_CONTEXTS is not set. This could possibly be a breaking change, if anybody is still using this lib incorrectly (i.e. using 'setTimezone' with regular Date instances since they've been globally modified...)
This is _MUCH_ more accurate for a few reasons: - `mktime` properly determines daylight savings time for us - `mktime` properly calculates leap-year - `mktime` properly calculates the month length for each month - previously, it was just constant values for MILLIS_PER_YEAR and MILLIS_PER_MONTH, which is laughable
…. just being lazy...
…et()' function to avoid unnecessarily calling `setTime()`.
…rds the `get*()` functions will return the expected values.