Skip to content

Add helper methods#76

Open
dfang wants to merge 4 commits into
jinzhu:masterfrom
dfang:master
Open

Add helper methods#76
dfang wants to merge 4 commits into
jinzhu:masterfrom
dfang:master

Conversation

@dfang

@dfang dfang commented Aug 25, 2025

Copy link
Copy Markdown
Contributor
  1. IsWeekend(t time.Time) IsWeekday(t time.Time)
  2. IsToday
  3. Tuesday .... Saturday

dfang and others added 4 commits August 25, 2025 00:41
Following the same pattern as Monday and Sunday functions, this commit adds the remaining weekday functions to provide a complete set of weekday date calculations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- IsToday(t time.Time): checks if a given time is within today
- IsTimestampToday(timestamp float64): checks Unix timestamp in seconds (10 digits)
- IsMillisecondTimestampToday(timestamp float64): checks Unix timestamp in milliseconds (13 digits)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Changed IsToday, IsTimestampToday, IsMillisecondTimestampToday, IsWeekend, and IsWeekday from methods to standalone functions for better usability.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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