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

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

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2026 11:13PM 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

12 Apr 2026 11:12PM UTC coverage: 80.935% (+0.3%) from 80.653%
24318707527.1

push

github

MagicalTux
Align DateParse with PHP date_parse on 89 reference inputs

Reference outputs are generated from PHP (testdata/date_parse_php.sh +
testdata/date_parse_php.jsonl) and verified by TestDateParse_PHPParity.
Fixes brought in to match PHP byte-for-byte on common inputs:

- Keyword handling: midnight/noon/today/tomorrow/yesterday/now report
  only the components PHP reports (relative block for tomorrow/yesterday).
- Fraction defaults to 0 when hour is set; relative.first_day_of_month
  and .last_day_of_month emitted from firstLastDayMode.
- Timezone quirks: "Z" is zone_type 2 with tz_abbr "Z"; "UTC" is type 3
  with both tz_abbr + tz_id; DST abbreviations (EDT/PDT/CEST/…) report
  the standard offset in zone and is_dst=true.
- Month+year ("May 2020") fills day=1.
- ISO week date ("2023-W03") emits year-Jan-1 + relative.day offset.
- Unix @N emits 1970-01-01 + relative.second=N, zone_type 1.
- RFC2822-style inputs propagate weekday and numeric TZ offset.
- Bare time handles trailing AM/PM and fractional seconds.

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

3982 of 4920 relevant lines covered (80.93%)

213.48 hits per line

Source Files on job 24318707527.1
  • Tree
  • List 14
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24318707527
  • 4c5a43c6 on github
  • Prev Job for on master (#24318411078.1)
  • Next Job for on master (#24318778822.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