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

KarpelesLab / strtotime / 24321393499 / 1
81%
master: 81%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2026 01:24AM UTC
Files 14
Run time 0s
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.1

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>

4420 of 5425 relevant lines covered (81.47%)

276.41 hits per line

Source Files on job 24321393499.1
  • Tree
  • List 14
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24321393499
  • d5c5a338 on github
  • Prev Job for on master (#24319068423.1)
  • Next Job for on master (#24321516754.1)
  • 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