Date object package

Description

A package for JavaScript's built-in Date object.
This package provides implementations of the standard get and set methods for working with dates. All set methods follow an immutable approach, creating a new Date object using new Date() and setTime() to ensure no side effects or modifications to the original date.

Note: All set methods only support single arguments (e.g., setHours(20)), and do not accept the additional optional parameters found in the native built-in methods (e.g., setHours(20, 21, 22)).

For more information, refer to the
MDN documentation for Date.

Get methods

getFullYear()

getMonth()

getDate()

getHours()

getMinutes()

getSeconds()

getMilliseconds()

getDay()

Set methods

setFullYear()

setMonth()

setDate()

setHours()

setMinutes()

setSeconds()

setMilliseconds()