• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / strtotime / 24321393499
81%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2026 01:24AM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Apr 2026 01:23AM UTC coverage: 81.475% (+0.3%) from 81.196%
24321393499

push

github

MagicalTux
Emulate PHP date_parse quirks: invalid dates, hour 24, compound keywords

- parseInvalidISOFormatInto / parseInvalidMonthNameDateInto: out-of-range
  dates (2023-02-29, Feb 29 2023, 2023-00-15, 2023-04-31) still report
  year/month/day plus a warning "The parsed date was invalid" at position
  len(str)+1 (PHP timelib uses 1-past-end for this marker).
- tryParseTimeExpression accepts hour=24 and emits
  "The parsed time was invalid" — matches PHP's tolerant 24:00:00 handling.
- Added tryParseDayKeyword for in-stream "tomorrow" / "yesterday" / "today"
  / "now". Combined with the existing weekday + time-keyword handlers, PHP's
  "tomorrow noon" / "noon tomorrow" / "monday 10am" / "10am tomorrow" etc.
  now produce the correct hour + relative semantics (last token wins for
  hour; weekday/tomorrow tokens reset hour to 0 and set day offset).
- tryWeekdayPrefixReparse rejects bare-time tails so "monday 10am" is
  parsed by the token parser as weekday + time, not anchored to today.
- copyComponents now forwards the Warnings/Errors maps from sub-parsers.

Suite: 334 PHP parity cases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

115 of 140 new or added lines in 2 files covered. (82.14%)

4420 of 5425 relevant lines covered (81.47%)

276.41 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
80.48
-0.16% strtotime.go
8
87.37
-0.0% component_parsers.go
Jobs
ID Job ID Ran Files Coverage
1 24321393499.1 13 Apr 2026 01:24AM UTC 14
81.47
GitHub Action Run
Source Files on build 24321393499
  • Tree
  • List 14
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24321393499
  • d5c5a338 on github
  • Prev Build on master (#24319068423)
  • Next Build on master (#24321516754)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc