qansigliere-date-utils
v2026.2.1-6.4
Published
The main idea of this library, created in JavaScript, is to provide a ready-made set of methods for work with day and time formats.
Maintainers
Readme
Qansigliere Date Utils
The main idea of this library, created in JavaScript, is to provide a ready-made set of methods for creating and updating files.
Author
https://www.youtube.com/@QANSIGLIERE/
Support the project
https://buymeacoffee.com/qansigliere
Installation
Using npm: npm i qansigliere-date-utils
Functions
getDateEpochFormat(skipMilliseconds)- it returns a date timestamp in the EPOCH format like 1770976468473.getDate(adjustDays)- it returns a date timestamp in the YYYY-MM-DD format. The adjustDays parameter indicates how many days need to be added to or removed from the current date.getDateISOFormat(adjustDays, skipMilliseconds)- it returns a date timestamp in the ISO format. The adjustDays parameter indicates how many days need to be added to or removed from the current date. If skipMilliseconds=true, it will return a timestamp without milliseconds like 2026-02-13T09:52:17ZconvertEpochToISO(epochFormat, skipMilliseconds)- it allows you to convert the epoch timestamp to ISO formatgetNumberOfDaysPerMonth(date)- the function returns the number of days in the month for the specified dategetFirstDayOfWeek(date)- it returns the first day of the week (Sunday) for the specified dateconvertToSeconds(date)- convert the epoch timestamp to secondsconvertToMinutes(date)-convert the epoch timestamp to minutesconvertToHours(date)- convert the epoch timestamp to hoursconvertToDays(date)- convert the epoch timestamp to days
Improvements & Suggestions
https://forms.gle/GZbS9hw42tSYJxKL7
