Skip to content

feat(datetime): add convenience comparison and manipulation methods#1450

Merged
innocenzi merged 1 commit intomainfrom
feat/datetime-qol
Aug 2, 2025
Merged

feat(datetime): add convenience comparison and manipulation methods#1450
innocenzi merged 1 commit intomainfrom
feat/datetime-qol

Conversation

@innocenzi
Copy link
Copy Markdown
Member

This pull request adds many convenience methods to the DateTime and Timestamp classes. It was a bit of work so I procrastinated that, but we have them now!

$date->isToday();
$date->isSameDay($otherDate);
$date->isEndOfWeek();
$date->isLastDayOfYear();

@innocenzi innocenzi merged commit 4aab9ed into main Aug 2, 2025
93 of 99 checks passed
@innocenzi innocenzi deleted the feat/datetime-qol branch August 2, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant