![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@type-ddd/date
Advanced tools
Library that provides TypeScript type definitions for handling Dates in Domain-Driven Design contexts. It facilitates the validation and manipulation of Dates.
@type-ddd/date
The @type-ddd/date library provides a class Dates for handling date and time operations in TypeScript. It offers various methods for manipulating dates, calculating differences, formatting dates, and checking validity. This library aims to simplify date and time management in Domain-Driven Design contexts.
Install rich-domain
and @type-ddd/date
with your favorite package manager:
npm i rich-domain @type-ddd/date
# OR
yarn add rich-domain @type-ddd/date
import { Dates } from '@type-ddd/dates';
// Check if is valid value
const isValid = Dates.isValid('2020-02-31');
// false
// Initialize Dates instance with current date and time
const date = Dates.init();
// OR
// Create Dates instance from provided date or timestamp
const result = Dates.create('2024-05-24');
// Add days, months, hours, minutes, weeks, or years
const newDate = date.addDays(5).addMonths(2);
// Format date according to various patterns
const formattedDate = date.format('DD/MM/YYYY hh:mm:ss');
// Check if date is weekday or weekend
const isWeekday = date.isWeekday();
const isWeekend = date.isWeekend();
FAQs
Library that provides TypeScript type definitions for handling Dates in Domain-Driven Design contexts. It facilitates the validation and manipulation of Dates.
We found that @type-ddd/date demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.