Level 88
Try this
Carbon::now()->format('g:i A'); // 10:53 AM
Carbon::now()->addHours(10)->format('g:i A'); // 8:53 PM
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to get the time in AM or PM from Carbon::parse() result?
Please or to participate in this conversation.