| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e6cb553f-041b-c396-dea7-a4546b30aede |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB62:338BC:434773:5A8BC6:6B008CD3 |
| html-safe-nonce | 90ffc80f2f73ecfc1881aabdb0325c8c1b3f3731944ffdfe3142477f6c70a600 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjYyOjMzOEJDOjQzNDc3Mzo1QThCQzY6NkIwMDhDRDMiLCJ2aXNpdG9yX2lkIjoiNDQ1OTAzODI4NTg4NDY1MzYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f61b55a51e55a64f9ed4436bc54fec415bf198486f56b66d34c7dc95f76b1d90 |
| hovercard-subject-tag | pull_request:4017973152 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| twitter:image | https://avatars.githubusercontent.com/u/1301959?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1301959?s=400&v=4 |
| og:image:alt | floorDiv(year, 400) -> floorDiv(floorDiv(year, 100), 4)
Since arithmetic shift year >> 2 is equal to floorDiv(year, 4):
century = floorDiv(year, 100)
floorDiv(century, 4) -> centur... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/AssemblyScript/assemblyscript/pull/3033/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F3033%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F3033%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=AssemblyScript%2Fassemblyscript |
| Reload | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| Reload | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| Reload | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| AssemblyScript | https://github.com/AssemblyScript |
| assemblyscript | https://github.com/AssemblyScript/assemblyscript |
| Code | https://github.com/AssemblyScript/assemblyscript |
| Issues196 (196) | https://github.com/AssemblyScript/assemblyscript/issues |
| Pull requests24 (24) | https://github.com/AssemblyScript/assemblyscript/pulls |
| Actions | https://github.com/AssemblyScript/assemblyscript/actions |
| Wiki | https://github.com/AssemblyScript/assemblyscript/wiki |
| Security and quality | https://github.com/AssemblyScript/assemblyscript/security |
| Insights | https://github.com/AssemblyScript/assemblyscript/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FAssemblyScript%2Fassemblyscript%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FAssemblyScript%2Fassemblyscript%2Fissues%2Fnew%2Fchoose |
| MaxGraey | https://github.com/MaxGraey |
| AssemblyScript:main | https://github.com/AssemblyScript/assemblyscript/tree/main |
| MaxGraey:date-perf | https://github.com/MaxGraey/assemblyscript/tree/date-perf |
|
Conversation
5
| https://github.com/AssemblyScript/assemblyscript/pull/3033 |
|
Commits
4
| https://github.com/AssemblyScript/assemblyscript/pull/3033/commits |
|
Checks
15
| https://github.com/AssemblyScript/assemblyscript/pull/3033/checks |
|
Files changed
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
|
fix: optimize dayOfWeek & dateFromEpoch routines in date
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#top |
|
Show all changes
4 commits
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
|
10c288b
fix: speedup dayOfWeek
MaxGraey Jul 8, 2026
| https://github.com/AssemblyScript/assemblyscript/pull/3033/commits/10c288b18996c8d65b8fcdae06ed1dd2c397cf19 |
|
34f5d5d
refaxctor
MaxGraey Jul 9, 2026
| https://github.com/AssemblyScript/assemblyscript/pull/3033/commits/34f5d5dc7d68b095f9d086169143cdd010f8d720 |
|
9893245
refactor more (nfc)
MaxGraey Jul 9, 2026
| https://github.com/AssemblyScript/assemblyscript/pull/3033/commits/9893245a71e274f06198f51b214a35e4a50f94ce |
|
fc90317
branchless dateFromEpoch
MaxGraey Jul 9, 2026
| https://github.com/AssemblyScript/assemblyscript/pull/3033/commits/fc90317564c4b33af5f0be368f4faeeeef6653ee |
|
Clear filters
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
|
date.ts
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
date.debug.wat
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-df9ac5724d1c7730e58c745b4e252d43e4d88fc972bfcefacd3c1deb9788b321 |
|
date.release.wat
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-07e9a3a4baaa04cff43d8a604ab6b6ce8ba12ee50d73bffa59fc80a5f6c38667 |
|
date.ts
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-acdab9fd56ffe1804d9d8a29064ca941e3892b31922ab86406d75d8fbc4be56d |
| std/assembly/date.ts | https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
View file
| https://github.com/MaxGraey/assemblyscript/blob/fc90317564c4b33af5f0be368f4faeeeef6653ee/std/assembly/date.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/AssemblyScript/assemblyscript/pull/3033/{{ revealButtonHref }} |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3033/files#diff-582211daa67f78e6ed1e01bc4f1ee745bf69e6c5cf22dfc469a059fcb485d702 |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3033/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |