v0.1.0 #2
Asim-Tahir
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Added New Methods 🎉
All methods are accessible via
Date
object.Also, can import methods from the specified category:
manipulate
categorycomparison
categoryworking-days
categoryManupulate category:
Add Manupulation Methods:
addDays(days: number): Date
addWeeks(weeks: number): Date
addMonths(months: number): Date
addYears(years: number): Date
Subtract Manupulation Methods:
subtractDays(days: number): Date
subtractWeeks(weeks: number): Date
subtractMonths(months: number): Date
subtractYears(years: number): Date
Reference Manupulation Methods:
clone(): Date
Comparison category:
isBefore(given: Date): boolean
isSame(given: Date): boolean
isAfter(given: Date): boolean
isSameOrBefore(given: Date): boolean
isSameOrAfter(given: Date): boolean
isBetween(start: Date, end: Date): boolean
isPast(given?: Date): boolean
isFuture(given?: Date): boolean
isDay(dayName: DayName): boolean
Working Days category:
isWorkingDay(): boolean
isWeekend(): boolean
addWorkingDays(days: number): Date
subtractWorkingDays(days: number): Date
This discussion was created from the release v0.1.0.
Beta Was this translation helpful? Give feedback.
All reactions